]> git.proxmox.com Git - rustc.git/blob - src/test/ui/custom_test_frameworks/auxiliary/example_runner.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / custom_test_frameworks / auxiliary / example_runner.rs
1 pub trait Testable {
2 fn name(&self) -> String;
3 fn run(&self) -> Option<String>; // None will be success, Some is the error message
4 }
5
6 pub fn runner(tests: &[&dyn Testable]) {
7 for t in tests {
8 print!("{}........{}", t.name(), t.run().unwrap_or_else(|| "SUCCESS".to_string()));
9 }
10 }