Skip to content

Conversation

@mithileshz
Copy link

No description provided.

@mithileshz mithileshz changed the title Change the long-full template for Read() to convert to Int64 Fix the long-full template for Read() to convert to Int64 Mar 22, 2025
@mithileshz
Copy link
Author

mithileshz commented Mar 22, 2025

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.

Copy link
Owner

@andrewlock andrewlock left a 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());
Copy link
Owner

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? 🤔

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Author

@mithileshz mithileshz Apr 3, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants