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

nlohmann / json / 36342550994
99%

Build:
DEFAULT BRANCH: develop
Ran 27 Sep 2026 11:32PM UTC
Jobs 1
Files 34
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

27 Sep 2026 06:57PM UTC coverage: 98.871% (-0.06%) from 98.926%
36342550994

push

github

web-flow
Fix MSVC: avoid reserving by faked size in MessagePack size tests (#5604)

The "Size above uint32" tests for arrays and objects fake a container
size of 2^32 and expect to_msgpack() to throw out_of_range.412. But
to_msgpack(j) first reserves binary_reserve_hint(j) bytes, which is
size + 1 for arrays and 2 * size + 1 for objects, i.e. 4 or 8 GiB.
Linux and macOS overcommit, so the reservation succeeds; on Windows it
throws std::bad_alloc before the size check is reached (seen with
msvc-vs2026 Debug x64 on the object test).

Write into a caller-owned vector instead, so nothing is reserved.

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

3068 of 3188 branches covered (96.24%)

8320 of 8415 relevant lines covered (98.87%)

13190769.19 hits per line

Coverage Regressions

Lines Coverage ∆ File
36
97.42
-0.09% include/nlohmann/detail/input/binary_reader.hpp
7
97.95
-0.02% include/nlohmann/json.hpp
3
99.7
-0.07% include/nlohmann/detail/output/binary_writer.hpp
Jobs
ID Job ID Ran Files Coverage
1 36342550994.1 27 Sep 2026 11:32PM UTC 34
98.87
GitHub Action Run
Source Files on build 36342550994
  • Tree
  • List 34
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36342550994
  • 373005f7 on github
  • Prev Build on develop (#36319124444)
  • Next Build on develop (#36478524517)
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