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

eclipse-aascw / aas-core-codegen / 35287206928
90%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2026 11:36PM UTC
Jobs 3
Files 264
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

17 Sep 2026 11:31PM UTC coverage: 85.709% (+0.02%) from 85.686%
35287206928

push

github

web-flow
Reject non-finite floats in the C++ JSON (#713)

JSON knows neither an infinity nor a not-a-number. Up to now the C++
jsonization silently handed both to nlohmann, which writes them out as
``null``, so an infinite or not-a-number property left the SDK as a JSON
document that no longer said what the instance held.

``SerializeDouble`` now returns the very same
``(optional<json>, optional<SerializationError>)`` pair as
``SerializeInt64``, and refuses a non-finite value.

``DeserializeDouble`` rejects a non-finite value as well. A conformant
parser can never produce one, but the caller gives us an
``nlohmann::json`` which may have been constructed programmatically.

We also include ``<cmath>`` explicitly. ``std::modf`` in
``DeserializeInt64`` has been relying on it arriving transitively through
``nlohmann/json.hpp``.

The tests go into the existing test of the JSON de/serialization of
the concrete classes, driven by a new ``intermediate.numeric_places``.
That query lists the places where a number unrepresentable in JSON can
sit -- a property, a list item and a tuple item -- so that the same
tests can be generated for the other targets as well. The list case puts
the bad value at the index 1 on purpose: a serializer which always
reports the index 0 has to fail the test.

84 of 87 new or added lines in 5 files covered. (96.55%)

34442 of 40185 relevant lines covered (85.71%)

2.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.7
-1.24% aas_core_codegen/intermediate/_stringify.py
1
93.22
0.03% aas_core_codegen/cpp/lib/_generate_jsonization.py
Jobs
ID Job ID Ran Files Coverage
1 3.11 - 35287206928.1 17 Sep 2026 11:38PM UTC 264
85.71
GitHub Action Run
2 3.10 - 35287206928.2 17 Sep 2026 11:38PM UTC 264
85.71
GitHub Action Run
3 3.12 - 35287206928.3 17 Sep 2026 11:38PM UTC 264
85.71
GitHub Action Run
Source Files on build 35287206928
  • Tree
  • List 264
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3623a652 on github
  • Prev Build on main (#35267724995)
  • Next Build on main (#35288602498)
  • Delete
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