-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoder: Update go-codec version. #560
Conversation
assert.NotContains(t, data, "0:") | ||
} | ||
|
||
func TestStrictEncodeMapInterfaceKeyAsString(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was re-enabled. The one below is new. The rest were reformatted to be standalone tests instead of using t.Run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! 🎉
Minor nits suggested below, but LGTM and tests look much cleaner now
encoding/json/json_test.go
Outdated
|
||
data := TestStruct{ | ||
Complex: map[KeyStruct]string{ | ||
KeyStruct{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter says to remove KeyStruct
:
KeyStruct{ | |
{ |
encoding/json/json_test.go
Outdated
} | ||
|
||
encoded := Encode(data) | ||
fmt.Println(string(encoded)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover debug message?
With the new version of go-codec, integer keys are quoted.