Skip to content

Commit

Permalink
Rollup merge of rust-lang#39815 - oli-obk:patch-3, r=aturon
Browse files Browse the repository at this point in the history
enable tools to use test runners programmatically
  • Loading branch information
GuillaumeGomez authored Feb 24, 2017
2 parents 246b1db + 80ac323 commit c07aa14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libtest/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl fmt::Display for TestName {
}

#[derive(Clone, Copy, PartialEq, Eq)]
enum NamePadding {
pub enum NamePadding {
PadNone,
PadOnRight,
}
Expand Down Expand Up @@ -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>),
Expand All @@ -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;
Expand Down

0 comments on commit c07aa14

Please sign in to comment.