#runner #benchmark #test-runner #copy-paste #rustc #black-box

libtest-mirror

a copy-paste of rust's built-in test runner

1 unstable release

new 0.1.0+1.82.0 Nov 7, 2024

#312 in Testing

48 downloads per month

MIT/Apache

245KB
6K SLoC

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.

Dependencies

~1.5MB
~21K SLoC