Crate test [−] [src]
Unstable (
test)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 Chapter of the book for more details.
Reexports
pub use self::TestFn::*; |
pub use self::ColorConfig::*; |
pub use self::TestResult::*; |
pub use self::TestName::*; |
Modules
| bench | [Unstable] |
| stats | [Unstable] |
| test | [Unstable] |
Structs
| BenchSamples | [Unstable] |
| Bencher |
[Unstable] Manager of the benchmarking runs. |
| Metric | [Unstable] |
| MetricMap | [Unstable] |
| TestDesc | [Unstable] |
| TestDescAndFn | [Unstable] |
| TestOpts | [Unstable] |
| TestPaths | [Unstable] |
Enums
| ColorConfig | [Unstable] |
| ShouldPanic | [Unstable] |
| TestFn | [Unstable] |
| TestName | [Unstable] |
| TestResult | [Unstable] |
Traits
| TDynBenchFn |
[Unstable] Represents a benchmark function. |
Functions
| black_box |
[Unstable] A function that is opaque to the optimizer, to allow benchmarks to pretend to use outputs to assist in avoiding dead-code elimination. |
| convert_benchmarks_to_tests | [Unstable] |
| filter_tests | [Unstable] |
| fmt_bench_samples | [Unstable] |
| parse_opts | [Unstable] |
| run_test | [Unstable] |
| run_tests_console | [Unstable] |
| test_main | [Unstable] |
| test_main_static | [Unstable] |
Type Definitions
| MonitorMsg | [Unstable] |
| OptRes |
[Unstable] Result of parsing the options. |