junit: Remove benchmark specific code from package junit

The junit package shouldn't need to know anything about benchmarks and
gtr.Benchmark will be removed in a future commit. Instead, it will be
the responsibility of the gotest parser to represent benchmarks using
gtr.Test.
This commit is contained in:
Joël Stemmer
2022-06-15 00:08:18 +01:00
parent 46e0aed494
commit dc591b8731
2 changed files with 3 additions and 30 deletions

View File

@ -14,9 +14,9 @@ func TestCreateFromReport(t *testing.T) {
report := gtr.Report{
Packages: []gtr.Package{
{
Benchmarks: []gtr.Benchmark{
Tests: []gtr.Test{
{
Name: "BenchmarkFail",
Name: "TestFail",
Result: gtr.Fail,
},
},
@ -35,7 +35,7 @@ func TestCreateFromReport(t *testing.T) {
ID: 0,
Testcases: []Testcase{
{
Name: "BenchmarkFail",
Name: "TestFail",
Time: "0.000",
Failure: &Result{Message: "Failed"},
},