Skip to content
Myr

Simplify CSV tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent da399ab · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:src/export/csv.rs+6 added-6 removed
65 unmodified lines
66 let exporter = CsvExporter::default();6768 let results = vec![69 BenchmarkResult {70 command: String::from("FOO=one BAR=two command | 1"),71 command_with_unused_parameters: String::from("FOO=one BAR=two command | 1"),70 command: String::from("command_a"),71 command_with_unused_parameters: String::from("command_a"),72 mean: 1.0,73 stddev: Some(2.0),74 median: 1.0,75 user: 3.0,
10 unmodified lines
86 params87 },88 },89 BenchmarkResult {90 command: String::from("FOO=one BAR=seven command | 2"),91 command_with_unused_parameters: String::from("FOO=one BAR=seven command | 2"),90 command: String::from("command_b"),91 command_with_unused_parameters: String::from("command_b"),92 mean: 11.0,93 stddev: Some(12.0),94 median: 11.0,95 user: 13.0,
20 unmodified lines
116 .unwrap();117118 insta::assert_snapshot!(actual, @r#"119 command,mean,stddev,median,user,system,min,max,parameter_bar,parameter_foo120 FOO=one BAR=two command | 1,1,2,1,3,4,5,6,two,one121 FOO=one BAR=seven command | 2,11,12,11,13,14,15,16.5,seven,one120 command_a,1,2,1,3,4,5,6,two,one121 command_b,11,12,11,13,14,15,16.5,seven,one122 "#);123}