-
Notifications
You must be signed in to change notification settings - Fork 912
GODRIVER-2119 implement methods required to use as a map key #715
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
Conversation
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.
Thanks again for your contribution @Luberry ! Just some small comments.
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.
LGTM! I'll wait for the rest of the team to review; thanks.
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.
Thank you for the contribution @Luberry! I have a question about an alternative for UnmarshalText
.
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.
Approved, with a few suggestions, and pending resolution of the UnmarshalText
conversation.
require.Equal(t, expectedJSON, out) | ||
} | ||
|
||
func TestObjectID_UnmarshalJSONMap(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.
Consider incorporating this test function as a test case in TestObjectID_UnmarshalJSON
.
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.
I did not add it in TestObjectID_UnmarshalJSON
because i did not see a clean way of slotting it into the table tests.
…mplements the interface
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.
LGTM, thank you again for the contribution @Luberry!
GODRIVER-2119
Implements the TextMarshaler and TextUnmarshaler methods on
primitive.ObjectID
to allow it to be used as a map key.