Skip to content
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

Fix: add quote when marshalJSON #6

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

quagmt
Copy link
Owner

@quagmt quagmt commented Oct 15, 2024

Description

  • Add double quote to MarshalJSON result, to turn it to string

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.57%. Comparing base (2496a64) to head (65a5789).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   94.52%   94.57%   +0.05%     
==========================================
  Files           5        5              
  Lines        1260     1272      +12     
==========================================
+ Hits         1191     1203      +12     
  Misses         37       37              
  Partials       32       32              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@quagmt quagmt force-pushed the fix/marshal-json-with-quote branch from a5095ca to 65a5789 Compare October 15, 2024 04:29
@quagmt quagmt merged commit 135d669 into master Oct 15, 2024
10 checks passed
} else {
// if not trimming trailing zeros, we can safely allocate 41 bytes
// 1 sign + 1 dot + len(u128) (which is max to 39 bytes)
buf = []byte("00000000000000000000000000000000000000000")
// buf = []byte("00000000000000000000000000000000000000000")

Choose a reason for hiding this comment

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

I think this line should have been removed

Choose a reason for hiding this comment

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

I would have committed the benchmark changes for readability purpose. It wasn't easy to review altogether

@quagmt quagmt deleted the fix/marshal-json-with-quote branch October 15, 2024 12:28
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.

2 participants