mirror of
https://github.com/golang/go.git
synced 2025-10-19 19:13:18 +00:00
Rename files for exit code tests
This commit is contained in:
parent
722b65dc38
commit
db2207fba9
5 changed files with 4 additions and 6 deletions
|
@ -175,8 +175,8 @@ func TestDiff(t *testing.T) {
|
|||
in string
|
||||
exitCode int
|
||||
}{
|
||||
{in: "testdata/exitcode0", exitCode: 0},
|
||||
{in: "testdata/exitcode1", exitCode: 1},
|
||||
{in: "testdata/exitcode.input", exitCode: 1},
|
||||
{in: "testdata/exitcode.golden", exitCode: 0},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
1
src/cmd/gofmt/testdata/exitcode.golden
vendored
Normal file
1
src/cmd/gofmt/testdata/exitcode.golden
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
package main
|
1
src/cmd/gofmt/testdata/exitcode.input
vendored
Normal file
1
src/cmd/gofmt/testdata/exitcode.input
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
package main
|
2
src/cmd/gofmt/testdata/exitcode0
vendored
2
src/cmd/gofmt/testdata/exitcode0
vendored
|
@ -1,2 +0,0 @@
|
|||
// Input has correct formatting
|
||||
package main
|
2
src/cmd/gofmt/testdata/exitcode1
vendored
2
src/cmd/gofmt/testdata/exitcode1
vendored
|
@ -1,2 +0,0 @@
|
|||
// Input has incorrect formatting
|
||||
package main
|
Loading…
Add table
Add a link
Reference in a new issue