mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Simplify CSV tests
This commit is contained in:
1 parent
da399ab654
commit
0d2e3a4dd7
1 file changed
+6
-6
+6
-6
@@ -67,8 +67,8 @@ fn test_csv() {
|
|||||||
|
|
||||||
let results = vec![
|
let results = vec![
|
||||||
BenchmarkResult {
|
BenchmarkResult {
|
||||||
command: String::from("FOO=one BAR=two command | 1"),
|
command: String::from("command_a"),
|
||||||
command_with_unused_parameters: String::from("FOO=one BAR=two command | 1"),
|
command_with_unused_parameters: String::from("command_a"),
|
||||||
mean: 1.0,
|
mean: 1.0,
|
||||||
stddev: Some(2.0),
|
stddev: Some(2.0),
|
||||||
median: 1.0,
|
median: 1.0,
|
||||||
@@ -87,8 +87,8 @@ fn test_csv() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
BenchmarkResult {
|
BenchmarkResult {
|
||||||
command: String::from("FOO=one BAR=seven command | 2"),
|
command: String::from("command_b"),
|
||||||
command_with_unused_parameters: String::from("FOO=one BAR=seven command | 2"),
|
command_with_unused_parameters: String::from("command_b"),
|
||||||
mean: 11.0,
|
mean: 11.0,
|
||||||
stddev: Some(12.0),
|
stddev: Some(12.0),
|
||||||
median: 11.0,
|
median: 11.0,
|
||||||
@@ -117,7 +117,7 @@ fn test_csv() {
|
|||||||
|
|
||||||
insta::assert_snapshot!(actual, @r#"
|
insta::assert_snapshot!(actual, @r#"
|
||||||
command,mean,stddev,median,user,system,min,max,parameter_bar,parameter_foo
|
command,mean,stddev,median,user,system,min,max,parameter_bar,parameter_foo
|
||||||
FOO=one BAR=two command | 1,1,2,1,3,4,5,6,two,one
|
command_a,1,2,1,3,4,5,6,two,one
|
||||||
FOO=one BAR=seven command | 2,11,12,11,13,14,15,16.5,seven,one
|
command_b,11,12,11,13,14,15,16.5,seven,one
|
||||||
"#);
|
"#);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user