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

View File

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