desc: TestDesc {
name: StaticTestName("1"),
ignore: true,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(move || {})),
},
desc: TestDesc {
name: StaticTestName("2"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(move || {})),
},
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: true,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: true,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::Yes,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::YesWithMessage("error message"),
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::YesWithMessage(expected),
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::YesWithMessage(expected),
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
desc: TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(f)),
};
TestDesc {
name: StaticTestName("whatever"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type,
- #[cfg(bootstrap)]
- allow_fail: false,
}
}
let options = TestTimeOptions {
error_on_excess: false,
- colored: false,
unit_threshold: unit.clone(),
integration_threshold: integration.clone(),
doctest_threshold: doc.clone(),
desc: TestDesc {
name: StaticTestName("3"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::Yes,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(move || {})),
});
desc: TestDesc {
name: StaticTestName(name),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(move || {})),
})
desc: TestDesc {
name: DynTestName((*name).clone()),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
},
testfn: DynTestFn(Box::new(testfn)),
};
let desc = TestDesc {
name: StaticTestName("f"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
};
crate::bench::benchmark(TestId(0), desc, tx, true, f);
let desc = TestDesc {
name: StaticTestName("f"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
};
crate::bench::benchmark(TestId(0), desc, tx, true, f);
let test_a = TestDesc {
name: StaticTestName("a"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
};
let test_b = TestDesc {
name: StaticTestName("b"),
ignore: false,
+ #[cfg(not(bootstrap))]
+ ignore_message: None,
should_panic: ShouldPanic::No,
compile_fail: false,
no_run: false,
test_type: TestType::Unknown,
- #[cfg(bootstrap)]
- allow_fail: false,
};
let mut out = PrettyFormatter::new(OutputLocation::Raw(Vec::new()), false, 10, false, None);