Skip to content

Commit

Permalink
Eliminate code redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadi Hanna Al-Kass committed Jul 31, 2024
1 parent c7346a4 commit 48111bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ impl TestCase {
exec: Box<Fn(&mut Logger) -> TestCaseStatus>)
-> TestCase {
TestCase {
title: title,
criteria: criteria,
exec: exec,
title,
criteria,
exec,
}
}
}
Expand Down Expand Up @@ -169,10 +169,10 @@ impl TestRunner {
_ => 0,
};
let test_info = TestCaseResults {
title: test.title,
criteria: test.criteria,
duration: duration,
status: status.clone(),
title,
criteria,
duration,
status.clone(),
};
if self.module_path.len() > 0 {
println!("{} {}::{}: {} ({:.*}{})",mark, self.module_path, test.title, formatted_criteria, precision, test_info.duration, self.time_unit.1);
Expand Down

0 comments on commit 48111bf

Please sign in to comment.