Skip to content

fix(generator/dart): handle parsing NaN, Infinity, and -Infinity for doubles#1828

Merged
devoncarew merged 1 commit intogoogleapis:mainfrom
devoncarew:handle_nan_infinity
Apr 17, 2025
Merged

fix(generator/dart): handle parsing NaN, Infinity, and -Infinity for doubles#1828
devoncarew merged 1 commit intogoogleapis:mainfrom
devoncarew:handle_nan_infinity

Conversation

@devoncarew
Copy link
Copy Markdown
Contributor

When decoding doubles, we now can decode a double, or the strings 'NaN', 'Infinity', and '-Infinity' (but don't parse arbitrary strings as doubles). We now encode doubles as either a double, or as one of the three strings above.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.09%. Comparing base (e80e76b) to head (c1d0766).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1828   +/-   ##
=======================================
  Coverage   96.09%   96.09%           
=======================================
  Files          54       54           
  Lines        1998     1998           
=======================================
  Hits         1920     1920           
  Misses         78       78           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Thanks!

@devoncarew devoncarew merged commit 83c3361 into googleapis:main Apr 17, 2025
21 checks passed
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.

handle decoding + encoding Nan and infinity

2 participants