Skip to content

Commit 20c42a3

Browse files
committed
Use variable for expected value
1 parent d68f58e commit 20c42a3

File tree

1,234 files changed

+2
-723221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,234 files changed

+2
-723221
lines changed

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

codes/codes_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func (s) TestUnmarshalJSON_MarshalUnmarshal(t *testing.T) {
9494

9595
func (s) TestUnmarshalJSON_InvalidIntegerCode(t *testing.T) {
9696
var got Code
97-
wantErr := "invalid code: 200"
97+
wantErr := "invalid code: 200" // for integer invalid code, expect integer value in error message
9898
err := got.UnmarshalJSON([]byte("200"))
99-
if err.Error() != wantErr { // for integer invalid code, expect integer value in error message
99+
if err.Error() != wantErr {
100100
t.Errorf("got.UnmarshalJSON(200) != %s; got=%s", wantErr, err.Error())
101101
}
102102
}

vendor/cloud.google.com/go/compute/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

vendor/cloud.google.com/go/compute/internal/version.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

vendor/cloud.google.com/go/compute/metadata/CHANGES.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)