mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +00:00
1 parent
4b9cd06d86
commit
a8752769ab
11 files changed
+85
-10
No files matched your search
@@ -382,3 +382,19 @@ fn exports_intermediate_results_to_file() {
|
||||
let contents = std::fs::read_to_string(export_path).unwrap();
|
||||
assert!(contents.contains("true"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unused_parameters_are_shown_in_benchmark_name() {
|
||||
hyperfine()
|
||||
.arg("--runs=2")
|
||||
.arg("--parameter-list")
|
||||
.arg("branch")
|
||||
.arg("master,feature")
|
||||
.arg("echo test")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(
|
||||
predicate::str::contains("echo test (branch = master)")
|
||||
.and(predicate::str::contains("echo test (branch = feature)")),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user