Ran fmt
This commit is contained in:
@@ -425,7 +425,8 @@ where
|
||||
seed,
|
||||
property_max_success,
|
||||
} => {
|
||||
let tests = self.collect_tests(verbose, match_tests, exact_match, options.tracing)?;
|
||||
let tests =
|
||||
self.collect_tests(verbose, match_tests, exact_match, options.tracing)?;
|
||||
|
||||
if !tests.is_empty() {
|
||||
self.event_listener.handle_event(Event::RunningTests);
|
||||
@@ -490,10 +491,8 @@ where
|
||||
})
|
||||
.collect();
|
||||
|
||||
self.event_listener.handle_event(Event::FinishedBenchmarks {
|
||||
seed,
|
||||
tests,
|
||||
});
|
||||
self.event_listener
|
||||
.handle_event(Event::FinishedBenchmarks { seed, tests });
|
||||
|
||||
if !errors.is_empty() {
|
||||
Err(errors)
|
||||
|
||||
@@ -227,11 +227,7 @@ impl EventListener for Terminal {
|
||||
Event::FinishedBenchmarks { tests, .. } => {
|
||||
for test in tests {
|
||||
if let TestResult::Benchmark(result) = test {
|
||||
println!(
|
||||
"{} {} ",
|
||||
result.test.name.bold(),
|
||||
"BENCH".blue(),
|
||||
);
|
||||
println!("{} {} ", result.test.name.bold(), "BENCH".blue(),);
|
||||
println!(" Memory: {} bytes", result.cost.mem);
|
||||
println!(" CPU: {} units", result.cost.cpu);
|
||||
println!();
|
||||
|
||||
Reference in New Issue
Block a user