-
Notifications
You must be signed in to change notification settings - Fork 91
Fix the long-full template for Read() to convert to Int64
#170
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
base: master
Are you sure you want to change the base?
Conversation
long-full template for Read() to convert to Int64long-full template for Read() to convert to Int64
|
I'm just going to add a unit test to this PR too so that we have a test covering this change for the future :) Edit: that's done now. |
andrewlock
left a comment
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 for this! I think you'll also need to update one of the tests at least, though it's concerning that didn't obviously fail 🤔
| { | ||
| public override PLACEHOLDERID Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) | ||
| => new (reader.GetInt32()); | ||
| => new (reader.GetInt64()); |
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 believe this change should cause a change in this snapshot? 🤔
Line 98 in 6bd17db
| => new (reader.GetInt32()); |
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.
Nice
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.
Hey @andrewlock
I am unable to find the test that affects that snapshot. I had a look at the history of the snapshot here and wasn't able to find a test that is used for this specific snapshot. Can I get some help/a hint in where to look please?
No description provided.