testdata: Add extra leading 0 to testdata files

This commit is contained in:
Joël Stemmer 2022-03-27 22:57:36 +01:00
parent 03a83721a2
commit 752d873a6e
72 changed files with 73 additions and 73 deletions

View File

@ -30,148 +30,148 @@ type TestCase struct {
var testCases = []TestCase{ var testCases = []TestCase{
{ {
name: "01-pass.txt", name: "001-pass.txt",
reportName: "01-report.xml", reportName: "001-report.xml",
}, },
{ {
name: "02-fail.txt", name: "002-fail.txt",
reportName: "02-report.xml", reportName: "002-report.xml",
}, },
{ {
name: "03-skip.txt", name: "003-skip.txt",
reportName: "03-report.xml", reportName: "003-report.xml",
}, },
{ {
name: "04-go_1_4.txt", name: "004-go_1_4.txt",
reportName: "04-report.xml", reportName: "004-report.xml",
}, },
{ {
name: "05-no_xml_header.txt", name: "005-no_xml_header.txt",
reportName: "05-report.xml", reportName: "005-report.xml",
noXMLHeader: true, noXMLHeader: true,
}, },
{ {
name: "06-mixed.txt", name: "006-mixed.txt",
reportName: "06-report.xml", reportName: "006-report.xml",
noXMLHeader: true, noXMLHeader: true,
}, },
{ {
name: "07-compiled_test.txt", name: "007-compiled_test.txt",
reportName: "07-report.xml", reportName: "007-report.xml",
packageName: "test/package", packageName: "test/package",
}, },
{ {
name: "08-parallel.txt", name: "008-parallel.txt",
reportName: "08-report.xml", reportName: "008-report.xml",
}, },
{ {
name: "09-coverage.txt", name: "009-coverage.txt",
reportName: "09-report.xml", reportName: "009-report.xml",
}, },
{ {
name: "10-multipkg-coverage.txt", name: "010-multipkg-coverage.txt",
reportName: "10-report.xml", reportName: "010-report.xml",
}, },
{ {
name: "11-go_1_5.txt", name: "011-go_1_5.txt",
reportName: "11-report.xml", reportName: "011-report.xml",
}, },
{ {
name: "12-go_1_7.txt", name: "012-go_1_7.txt",
reportName: "12-report.xml", reportName: "012-report.xml",
}, },
{ {
name: "13-syntax-error.txt", name: "013-syntax-error.txt",
reportName: "13-report.xml", reportName: "013-report.xml",
}, },
{ {
name: "14-panic.txt", name: "014-panic.txt",
reportName: "14-report.xml", reportName: "014-report.xml",
}, },
{ {
name: "15-empty.txt", name: "015-empty.txt",
reportName: "15-report.xml", reportName: "015-report.xml",
}, },
{ {
name: "16-repeated-names.txt", name: "016-repeated-names.txt",
reportName: "16-report.xml", reportName: "016-report.xml",
}, },
{ {
name: "17-race.txt", name: "017-race.txt",
reportName: "17-report.xml", reportName: "017-report.xml",
}, },
{ {
name: "18-coverpkg.txt", name: "018-coverpkg.txt",
reportName: "18-report.xml", reportName: "018-report.xml",
}, },
{ {
name: "19-pass.txt", name: "019-pass.txt",
reportName: "19-report.xml", reportName: "019-report.xml",
}, },
{ {
name: "20-parallel.txt", name: "020-parallel.txt",
reportName: "20-report.xml", reportName: "020-report.xml",
}, },
{ {
name: "21-cached.txt", name: "021-cached.txt",
reportName: "21-report.xml", reportName: "021-report.xml",
}, },
{ {
name: "22-bench.txt", name: "022-bench.txt",
reportName: "22-report.xml", reportName: "022-report.xml",
}, },
{ {
name: "23-benchmem.txt", name: "023-benchmem.txt",
reportName: "23-report.xml", reportName: "023-report.xml",
}, },
{ {
name: "24-benchtests.txt", name: "024-benchtests.txt",
reportName: "24-report.xml", reportName: "024-report.xml",
}, },
{ {
name: "25-benchcount.txt", name: "025-benchcount.txt",
reportName: "25-report.xml", reportName: "025-report.xml",
}, },
{ {
name: "26-testbenchmultiple.txt", name: "026-testbenchmultiple.txt",
reportName: "26-report.xml", reportName: "026-report.xml",
}, },
{ {
name: "27-benchdecimal.txt", name: "027-benchdecimal.txt",
reportName: "27-report.xml", reportName: "027-report.xml",
}, },
{ {
name: "28-bench-1cpu.txt", name: "028-bench-1cpu.txt",
reportName: "28-report.xml", reportName: "028-report.xml",
}, },
{ {
name: "29-bench-16cpu.txt", name: "029-bench-16cpu.txt",
reportName: "29-report.xml", reportName: "029-report.xml",
}, },
{ {
// generated by running go test on https://gist.github.com/liggitt/09a021ccec988b19917e0c2d60a18ee9 // generated by running go test on https://gist.github.com/liggitt/09a021ccec988b19917e0c2d60a18ee9
name: "30-stdout.txt", name: "030-stdout.txt",
reportName: "30-report.xml", reportName: "030-report.xml",
}, },
{ {
name: "31-syntax-error-test-binary.txt", name: "031-syntax-error-test-binary.txt",
reportName: "31-report.xml", reportName: "031-report.xml",
}, },
{ {
name: "32-failed-summary.txt", name: "032-failed-summary.txt",
reportName: "32-report.xml", reportName: "032-report.xml",
}, },
{ {
name: "33-bench-mb.txt", name: "033-bench-mb.txt",
reportName: "33-report.xml", reportName: "033-report.xml",
}, },
{ {
name: "34-notest.txt", name: "034-notest.txt",
reportName: "34-report.xml", reportName: "034-report.xml",
}, },
{ {
name: "35-whitespace.txt", name: "035-whitespace.txt",
reportName: "35-report.xml", reportName: "035-report.xml",
}, },
} }

View File

@ -24,9 +24,9 @@ type Settings struct {
} }
var fileSettings = map[string]Settings{ var fileSettings = map[string]Settings{
"05-no_xml_header.txt": {skipXMLHeader: true}, "005-no_xml_header.txt": {skipXMLHeader: true},
"06-mixed.txt": {skipXMLHeader: true}, "006-mixed.txt": {skipXMLHeader: true},
"07-compiled_test.txt": {packageName: "test/package"}, "007-compiled_test.txt": {packageName: "test/package"},
} }
func main() { func main() {