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

eclipse-aascw / aas-core-codegen / 35664589463
89%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 10:53PM UTC
Jobs 3
Files 288
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

21 Sep 2026 10:48PM UTC coverage: 87.169% (-0.002%) from 87.171%
35664589463

push

github

web-flow
Check the membership in a JSON-able object (#741)

An invariant may well ask whether a JSON-able object carries a key, and
the type inference has always allowed it, but the transpilation did not
follow.

The membership check is now decided on the inferred type of the container,
in all the six backends:

* C++ asks ``nlohmann::json::contains``, with the key converted to UTF-8,
  as a string in the transpiled code is a wide string;
* C# asks ``Nodes.JsonObject.ContainsKey``;
* Java asks ``ObjectNode.has``;
* Golang asks ``aascommon.MapContains``, the same as it does for a set,
  a JSON-able object being a ``map[string]interface{}``;
* TypeScript asks ``Object.prototype.hasOwnProperty.call``, so that an object
  which carries a key ``hasOwnProperty`` of its own does not shadow the check;
* Python already spelled it ``in``.

A membership in a JSON-able *value* or *array* is refused with a message
instead of the wrong code which C++, C# and Java used to generate for it.

The new test case ``json_types_in_invariants`` covers the membership in
a JSON-able object and in an optional one, so that the de-referencing of
an optional is exercised as well.

20 of 23 new or added lines in 6 files covered. (86.96%)

1 existing line in 1 file now uncovered.

36849 of 42273 relevant lines covered (87.17%)

2.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
61.02
0.23% aas_core_codegen/cpp/transpilation.py
1
68.83
0.12% aas_core_codegen/csharp/transpilation.py
1
65.76
0.14% aas_core_codegen/java/transpilation.py

Coverage Regressions

Lines Coverage ∆ File
1
67.45
0.14% aas_core_codegen/typescript/transpilation.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 35664589463.1 21 Sep 2026 10:56PM UTC 288
87.17
GitHub Action Run
2 3.11 - 35664589463.2 21 Sep 2026 10:56PM UTC 288
87.17
GitHub Action Run
3 3.10 - 35664589463.3 21 Sep 2026 10:56PM UTC 288
87.17
GitHub Action Run
Source Files on build 35664589463
  • Tree
  • List 288
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 997a742e on github
  • Prev Build on main (#35660752823)
  • Next Build on main (#35666034739)
  • 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