Skip to content

Commit

Permalink
Use variable for expected value
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H committed May 7, 2024
1 parent 6b02a21 commit 8eb5431
Show file tree
Hide file tree
Showing 1,234 changed files with 2 additions and 723,221 deletions.
15 changes: 0 additions & 15 deletions .vscode/launch.json

This file was deleted.

4 changes: 2 additions & 2 deletions codes/codes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func (s) TestUnmarshalJSON_MarshalUnmarshal(t *testing.T) {

func (s) TestUnmarshalJSON_InvalidIntegerCode(t *testing.T) {
var got Code
wantErr := "invalid code: 200"
wantErr := "invalid code: 200" // for integer invalid code, expect integer value in error message
err := got.UnmarshalJSON([]byte("200"))
if err.Error() != wantErr { // for integer invalid code, expect integer value in error message
if err.Error() != wantErr {
t.Errorf("got.UnmarshalJSON(200) != %s; got=%s", wantErr, err.Error())
}
}
202 changes: 0 additions & 202 deletions vendor/cloud.google.com/go/compute/LICENSE

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/cloud.google.com/go/compute/internal/version.go

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/cloud.google.com/go/compute/metadata/CHANGES.md

This file was deleted.

Loading

0 comments on commit 8eb5431

Please sign in to comment.