diff options
| author | Oliver Schneider <oli-obk@users.noreply.github.com> | 2017-02-14 14:48:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-14 14:48:26 +0100 |
| commit | 6ba7065af18caa34a0da126488c64c46c0ca276c (patch) | |
| tree | f8a00559a9e3c8b1af3d4eb8c1f689bc840758a0 /src/libtest | |
| parent | 48bc08247a7b4a5579437df54ca3f4a3fb25ce8d (diff) | |
| download | rust-6ba7065af18caa34a0da126488c64c46c0ca276c.tar.gz rust-6ba7065af18caa34a0da126488c64c46c0ca276c.zip | |
enable tools to use test runners programmatically
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 112bf61cf97..428365784a3 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -950,7 +950,7 @@ fn stdout_isatty() -> bool { } #[derive(Clone)] -enum TestEvent { +pub enum TestEvent { TeFiltered(Vec<TestDesc>), TeWait(TestDesc, NamePadding), TeResult(TestDesc, TestResult, Vec<u8>), @@ -960,7 +960,7 @@ enum TestEvent { pub type MonitorMsg = (TestDesc, TestResult, Vec<u8>); -fn run_tests<F>(opts: &TestOpts, tests: Vec<TestDescAndFn>, mut callback: F) -> io::Result<()> +pub fn run_tests<F>(opts: &TestOpts, tests: Vec<TestDescAndFn>, mut callback: F) -> io::Result<()> where F: FnMut(TestEvent) -> io::Result<()> { use std::collections::HashMap; |
