rust/library/test/src
Josh Triplett 326ef470a8 Add IsTerminal trait to determine if a descriptor or handle is a terminal
The UNIX and WASI implementations use `isatty`. The Windows
implementation uses the same logic the `atty` crate uses, including the
hack needed to detect msys terminals.

Implement this trait for `File` and for `Stdin`/`Stdout`/`Stderr` and
their locked counterparts on all platforms. On UNIX and WASI, implement
it for `BorrowedFd`/`OwnedFd`. On Windows, implement it for
`BorrowedHandle`/`OwnedHandle`.

Based on https://github.com/rust-lang/rust/pull/91121

Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
2022-10-15 00:35:38 +01:00
..
formatters Auto merge of #95678 - pietroalbini:pa-1.62.0-bootstrap, r=Mark-Simulacrum 2022-04-07 07:34:04 +00:00
helpers Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
term test: skip terminfo parsing in Miri 2022-08-07 11:56:12 -04:00
bench.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00
cli.rs Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
console.rs Lock stdout once when listing tests 2022-07-22 18:39:26 -04:00
event.rs Implement #85440 2021-09-29 21:51:46 -04:00
lib.rs Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
options.rs feat(libtest): Add JUnit formatter 2021-04-25 15:51:50 -07:00
stats.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
term.rs Remove unused stuff and switch to pub(crate) whenever possible. 2021-07-18 22:00:41 +08:00
test_result.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
tests.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00
time.rs Use optflag for --report-time 2022-01-30 10:25:40 -05:00
types.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00