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

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

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 11:38PM 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 11:31PM UTC coverage: 87.173% (+0.004%) from 87.169%
35667968407

push

github

web-flow
Index and `len` a JSON object or array (#743)

An invariant may well index into a JSON-able object or array, and ask how
long one is.  The type inference has always allowed both, but the
transpilation did not follow.

Both operations are now decided on the inferred type of the collection, in
all the six backends.  A JSON-able *value* is refused for either: its shape
is known only at run time, so neither an index nor a length can be resolved
statically, and a boolean or a number is no container at all.

An index gives an *optional* JSON-able value, as the key might be missing
from the object and the position might lie outside the array.  The guards
which a meta-model already writes strip that optionality:

* ``key in mapping`` tells us that ``mapping[key]`` is there;
* ``len(array) > n``, and the other spellings of it, tell us how long
  the array is, and hence which of its positions are there, counted from
  its front as well as from its back.

108 of 124 new or added lines in 7 files covered. (87.1%)

36943 of 42379 relevant lines covered (87.17%)

2.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
69.26
0.95% aas_core_codegen/intermediate/type_inference.py
Jobs
ID Job ID Ran Files Coverage
1 3.10 - 35667968407.1 21 Sep 2026 11:39PM UTC 288
87.17
GitHub Action Run
2 3.12 - 35667968407.2 21 Sep 2026 11:39PM UTC 288
87.17
GitHub Action Run
3 3.11 - 35667968407.3 21 Sep 2026 11:39PM UTC 288
87.17
GitHub Action Run
Source Files on build 35667968407
  • Tree
  • List 288
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dea22582 on github
  • Prev Build on main (#35666034739)
  • Next Build on main (#35669899220)
  • 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