diff --git a/go-junit-report_test.go b/go-junit-report_test.go index b92183d..2e9c1db 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -1535,6 +1535,29 @@ var testCases = []TestCase{ }, }, }, + { + name: "33-bench-mb.txt", + reportName: "33-report.xml", + report: &parser.Report{ + Packages: []parser.Package{ + { + Name: "compress/flate", + Duration: 83202 * time.Millisecond, + Time: 83202, + Benchmarks: []*parser.Benchmark{ + { + Name: "BenchmarkDecode/Digits/Huffman/1e4", + Duration: 104427 * time.Nanosecond, + }, + { + Name: "BenchmarkEncode/Digits/Huffman/1e4", + Duration: 28334 * time.Nanosecond, + }, + }, + }, + }, + }, + }, } func TestParser(t *testing.T) { diff --git a/testdata/33-bench-mb.txt b/testdata/33-bench-mb.txt new file mode 100644 index 0000000..ba66875 --- /dev/null +++ b/testdata/33-bench-mb.txt @@ -0,0 +1,7 @@ +goos: linux +goarch: amd64 +pkg: compress/flate +BenchmarkDecode/Digits/Huffman/1e4-8 10000 104427 ns/op 95.76 MB/s 40629 B/op 5 allocs/op +BenchmarkEncode/Digits/Huffman/1e4-8 50000 28334 ns/op 352.93 MB/s +PASS +ok compress/flate 83.202s diff --git a/testdata/33-report.xml b/testdata/33-report.xml new file mode 100644 index 0000000..5cf034c --- /dev/null +++ b/testdata/33-report.xml @@ -0,0 +1,10 @@ + + + + + + + + + +