Crate testExperimental [stability]
[-]
[+]
[src]
Support code for rustc's built in unit-test and micro-benchmarking framework.
Almost all user code will only be interested in Bencher and
black_box. All other interactions (such as writing tests and
benchmarks themselves) should be done via the #[test] and
#[bench] attributes.
See the Testing Guide for more details.
Reexports
pub use self::TestFn::*; |
pub use self::MetricChange::*; |
pub use self::ColorConfig::*; |
pub use self::TestResult::*; |
pub use self::TestName::*; |
Modules
| bench | |
| stats | |
| test |
Structs
| BenchSamples | |
| Bencher | Manager of the benchmarking runs. |
| Metric | |
| MetricMap | |
| TestDesc | |
| TestDescAndFn | |
| TestOpts |
Enums
| ColorConfig | |
| MetricChange | Analysis of a single change in metric |
| ShouldFail | |
| TestFn | |
| TestName | |
| TestResult |
Traits
| TDynBenchFn | Represents a benchmark function. |
Functions
| black_box | A function that is opaque to the optimizer, to allow benchmarks to pretend to use outputs to assist in avoiding dead-code elimination. |
| filter_tests | |
| fmt_bench_samples | |
| fmt_metrics | |
| opt_shard | |
| parse_opts | |
| run_test | |
| run_tests_console | |
| test_main | |
| test_main_static |
Type Definitions
| MetricDiff | |
| MonitorMsg | |
| OptRes | Result of parsing the options. |