about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-03-02 19:40:15 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-03-19 13:58:47 +0100
commit2957c4c42eb282dd0c81f5231ed76235e08b4882 (patch)
tree5c7b74494438e40fd24291f3058238e5e3d97afe /src/libtest
parent95f79380ca06d4ef69f008ae9ead01fa451234b1 (diff)
downloadrust-2957c4c42eb282dd0c81f5231ed76235e08b4882.tar.gz
rust-2957c4c42eb282dd0c81f5231ed76235e08b4882.zip
Re-export libtest
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/lib.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
new file mode 100644
index 00000000000..17150046108
--- /dev/null
+++ b/src/libtest/lib.rs
@@ -0,0 +1,17 @@
+//! 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](../book/ch11-00-testing.html) of the book for more details.
+
+#![crate_name = "test"]
+#![unstable(feature = "test", issue = "27812")]
+#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
+       test(attr(deny(warnings))))]
+
+extern crate libtest;
+pub use libtest::*;