Skip to content

Commit c07aa14

Browse files
Rollup merge of rust-lang#39815 - oli-obk:patch-3, r=aturon
enable tools to use test runners programmatically
2 parents 246b1db + 80ac323 commit c07aa14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libtest/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl fmt::Display for TestName {
106106
}
107107

108108
#[derive(Clone, Copy, PartialEq, Eq)]
109-
enum NamePadding {
109+
pub enum NamePadding {
110110
PadNone,
111111
PadOnRight,
112112
}
@@ -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)