Skip to content

Commit 6ba7065

Browse files
authored
enable tools to use test runners programmatically
1 parent 48bc082 commit 6ba7065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtest/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ fn stdout_isatty() -> bool {
950950
}
951951

952952
#[derive(Clone)]
953-
enum TestEvent {
953+
pub enum TestEvent {
954954
TeFiltered(Vec<TestDesc>),
955955
TeWait(TestDesc, NamePadding),
956956
TeResult(TestDesc, TestResult, Vec<u8>),
@@ -960,7 +960,7 @@ enum TestEvent {
960960
pub type MonitorMsg = (TestDesc, TestResult, Vec<u8>);
961961

962962

963-
fn run_tests<F>(opts: &TestOpts, tests: Vec<TestDescAndFn>, mut callback: F) -> io::Result<()>
963+
pub fn run_tests<F>(opts: &TestOpts, tests: Vec<TestDescAndFn>, mut callback: F) -> io::Result<()>
964964
where F: FnMut(TestEvent) -> io::Result<()>
965965
{
966966
use std::collections::HashMap;

0 commit comments

Comments
 (0)