parser/gotest: Add test 24

This commit is contained in:
Joël Stemmer 2019-10-05 19:05:01 +01:00
parent e33490229b
commit 3676ed3cca

View File

@ -352,8 +352,26 @@ var tests = []struct {
{Type: "status", Result: "PASS"},
{Type: "summary", Result: "ok", Name: "package/one", Duration: 9415 * time.Millisecond},
}},
{"24-benchtests", []gtr.Event{}},
{"25-benchcount", []gtr.Event{}},
{"24-benchtests",
[]gtr.Event{
{Type: "run_test", Name: "TestNew"},
{Type: "run_test", Name: "TestNew/no"},
{Type: "run_test", Name: "TestNew/normal"},
{Type: "end_test", Name: "TestNew", Result: "PASS"},
{Type: "end_test", Name: "TestNew/no", Result: "PASS", Indent: 1},
{Type: "end_test", Name: "TestNew/normal", Result: "PASS", Indent: 1},
{Type: "run_test", Name: "TestWriteThis"},
{Type: "end_test", Name: "TestWriteThis", Result: "PASS"},
{Type: "output", Data: "goos: darwin"},
{Type: "output", Data: "goarch: amd64"},
{Type: "output", Data: "pkg: package3/baz"},
{Type: "benchmark", Name: "BenchmarkDeepMerge", Iterations: 500000, NsPerOp: 2611, BytesPerOp: 1110, AllocsPerOp: 16},
{Type: "benchmark", Name: "BenchmarkNext", Iterations: 500000, NsPerOp: 100, BytesPerOp: 100, AllocsPerOp: 1},
{Type: "status", Result: "PASS"},
{Type: "summary", Result: "ok", Name: "package3/baz", Duration: 1382 * time.Millisecond},
}},
{"25-benchcount",
[]gtr.Event{}},
{"26-testbenchmultiple", []gtr.Event{}},
{"27-benchdecimal", []gtr.Event{}},
{"28-bench-1cpu", []gtr.Event{}},