mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 21:18:08 -05:00
Fix tests after moving parser into subpackage
This commit is contained in:
parent
afd084b9d1
commit
8faee8c123
@ -265,22 +265,22 @@ var testCases = []TestCase{
|
|||||||
{
|
{
|
||||||
name: "09-coverage.txt",
|
name: "09-coverage.txt",
|
||||||
reportName: "09-report.xml",
|
reportName: "09-report.xml",
|
||||||
report: &Report{
|
report: &parser.Report{
|
||||||
Packages: []Package{
|
Packages: []parser.Package{
|
||||||
{
|
{
|
||||||
Name: "package/name",
|
Name: "package/name",
|
||||||
Time: 160,
|
Time: 160,
|
||||||
Tests: []*Test{
|
Tests: []*parser.Test{
|
||||||
{
|
{
|
||||||
Name: "TestZ",
|
Name: "TestZ",
|
||||||
Time: 60,
|
Time: 60,
|
||||||
Result: PASS,
|
Result: parser.PASS,
|
||||||
Output: []string{},
|
Output: []string{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "TestA",
|
Name: "TestA",
|
||||||
Time: 100,
|
Time: 100,
|
||||||
Result: PASS,
|
Result: parser.PASS,
|
||||||
Output: []string{},
|
Output: []string{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -292,22 +292,22 @@ var testCases = []TestCase{
|
|||||||
{
|
{
|
||||||
name: "10-multipkg-coverage.txt",
|
name: "10-multipkg-coverage.txt",
|
||||||
reportName: "10-report.xml",
|
reportName: "10-report.xml",
|
||||||
report: &Report{
|
report: &parser.Report{
|
||||||
Packages: []Package{
|
Packages: []parser.Package{
|
||||||
{
|
{
|
||||||
Name: "package1/foo",
|
Name: "package1/foo",
|
||||||
Time: 400,
|
Time: 400,
|
||||||
Tests: []*Test{
|
Tests: []*parser.Test{
|
||||||
{
|
{
|
||||||
Name: "TestA",
|
Name: "TestA",
|
||||||
Time: 100,
|
Time: 100,
|
||||||
Result: PASS,
|
Result: parser.PASS,
|
||||||
Output: []string{},
|
Output: []string{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "TestB",
|
Name: "TestB",
|
||||||
Time: 300,
|
Time: 300,
|
||||||
Result: PASS,
|
Result: parser.PASS,
|
||||||
Output: []string{},
|
Output: []string{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -316,11 +316,11 @@ var testCases = []TestCase{
|
|||||||
{
|
{
|
||||||
Name: "package2/bar",
|
Name: "package2/bar",
|
||||||
Time: 4200,
|
Time: 4200,
|
||||||
Tests: []*Test{
|
Tests: []*parser.Test{
|
||||||
{
|
{
|
||||||
Name: "TestC",
|
Name: "TestC",
|
||||||
Time: 4200,
|
Time: 4200,
|
||||||
Result: PASS,
|
Result: parser.PASS,
|
||||||
Output: []string{},
|
Output: []string{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user