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

nlohmann / json / 39315755542
96%

Build:
DEFAULT BRANCH: develop
Ran 20 Oct 2026 01:04AM UTC
Jobs 1
Files 38
Run time 1min
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

19 Oct 2026 08:00PM UTC coverage: 98.232% (+0.07%) from 98.165%
39315755542

push

github

web-flow
Make parsing from std::istream and FILE* fast (#5828)

* Make parsing from std::istream and FILE* fast

Squashed onto develop cd6b428ef (CI fixes from #5860). Original commits:

- Let the lexer's bulk fast paths run on a window of the input
- Scan the get area of an input stream in bulk
- Lock a FILE once per parse instead of once per character
- Add benchmarks for parsing from a FILE* and for many values from a stream
- Avoid implicit unsigned char to char conversion in stream tests
- Make file_input_adapter::unlock() safe to call on a moved-from adapter

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* Add ABI tags for JSON_DISABLE_STREAM_BULK_SCAN and JSON_DISABLE_UNLOCKED_FILE_IO

Both macros select between two definitions of an input adapter, so
translation units compiled with different settings violated the ODR when
linked together. Like the other ABI-affecting macros, they now append a
tag to the inline namespace: _dsbs and _dufio. Their defaults move to
abi_macros.hpp so that json_fwd.hpp sees them, and the natvis file is
regenerated for the new namespaces.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* Skip the exception-only checks of the stream input tests without exceptions

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

3719 of 4722 branches covered (78.76%)

141 of 142 new or added lines in 2 files covered. (99.3%)

1 existing line in 1 file now uncovered.

9667 of 9841 relevant lines covered (98.23%)

6250137.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.65
0.16% include/nlohmann/detail/input/input_adapters.hpp

Coverage Regressions

Lines Coverage ∆ File
1
97.22
-2.78% include/nlohmann/byte_container_with_subtype.hpp
Jobs
ID Job ID Ran Files Coverage
1 39315755542.1 20 Oct 2026 01:04AM UTC 38
98.23
GitHub Action Run
Source Files on build 39315755542
  • Tree
  • List 38
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39315755542
  • 4da932f5 on github
  • Prev Build on develop (#39010037873)
  • Next Build on develop (#39491664698)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc