• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

blues / note-c / 7701226127
93%

Build:
DEFAULT BRANCH: master
Ran 29 Jan 2024 07:14PM UTC
Jobs 1
Files 9
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jan 2024 07:10PM UTC coverage: 90.635%. Remained the same
7701226127

push

github

web-flow
Make more JSON number handling improvements. (#136)

* Make more JSON number handling improvements.

- Incorporate Ray's improvements to n_ftoa.c and n_atof.c that allow us to
support larger exponents.
- Add JAtoN and JNtoA unit tests to test these improvements.
- If NOTE_C_LOW_MEM is defined, define JNUMBER to float. On truly low memory
platforms, this likely does nothing, because those platforms often map double
and float to the same underlying type (which is single-precision). However, when
running the unit tests on a CPU with double-precision floating point support,
this allows us to deliberately run the unit tests with JNUMBER set to
single-precision. Doing this broke a couple test cases in
JSON_number_handling_test.cpp, which I've fixed here.

* Add NOTE_C_TEST_SINGLE_PRECISION.

This `#define` forces `JNUMBER` to be `float`, rather than `double`. This allows
us to run the unit tests with single precision floats, even on a machine that
supports double precision. This is useful coverage because a lot of small MCUs
don't support double precision.

* Simplify JAtoN.

Remove the code blocks guarded by `#ifndef LARGE_EXPONENT_FIX` (i.e. make the
code behave like LARGE_EXPONENT_FIX is always defined). Remove the
LARGE_EXPONENT_FIX define.

988 of 1201 branches covered (0.0%)

Branch coverage included in aggregate %.

2109 of 2216 relevant lines covered (95.17%)

81.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7701226127.1 29 Jan 2024 07:14PM UTC 0
90.64
GitHub Action Run
Source Files on build 7701226127
Detailed source file information is not available for this build.
  • Back to Repo
  • c1c6d0a7 on github
  • Prev Build on master (#7658019900)
  • Next Build on master (#7714785033)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc