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

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

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2026 09:30PM UTC
Jobs 3
Files 301
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 09:24PM UTC coverage: 88.505% (+0.02%) from 88.482%
36351585699

push

github

web-flow
Handle the interplay of integers and lengths (#785)

We represent the integers of the meta-model as 64-bit, while the lengths
are narrower in some targets (``int`` in C#, Java and Go, ``size_t`` in
C++). Mixing the two did not compile, *e.g.*, the index ``xs[i]`` with
``i: int`` in C# and Java, or silently wrapped around in C++.

We now widen by default, and narrow only where the targets require an
``int``. The type inference types ``len(xs) - 1`` as a length, but
``len(xs) - k`` with ``k: int`` as an integer, and allows assigning
a length to an integer. The targets widen the lengths accordingly
(``int64(len(xs))``, ``static_cast<int64_t>(xs.size())``,
``(long) xs.size()``), and narrow the integer indices with a check
(``xs[checked((int)i)]``, ``xs.get(Math.toIntExact(i))``).

We also fix the following: C++ declared all transpilable verification
functions as returning ``bool``, the ranges over integers in ``any`` and
``all`` did not compile in C++, Go, C# and Java, ``Enumerable.Range``
threw on an empty range in C#, and the generated Python tests could not
trace a sequence of primitives.

The new common meta-model ``int_length_interplay`` covers these cases.

123 of 136 new or added lines in 6 files covered. (90.44%)

8 existing lines in 2 files now uncovered.

41209 of 46561 relevant lines covered (88.51%)

2.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
79.4
0.53% aas_core_codegen/csharp/transpilation.py
3
77.82
0.68% aas_core_codegen/golang/transpilation.py
2
73.29
0.25% aas_core_codegen/cpp/transpilation.py
1
93.85
-0.12% aas_core_codegen/cpp/lib/_generate_verification.py
1
82.4
-0.01% aas_core_codegen/intermediate/type_inference.py
1
77.28
0.64% aas_core_codegen/java/transpilation.py

Coverage Regressions

Lines Coverage ∆ File
5
77.82
0.68% aas_core_codegen/golang/transpilation.py
3
73.29
0.25% aas_core_codegen/cpp/transpilation.py
Jobs
ID Job ID Ran Files Coverage
1 3.11 - 36351585699.1 27 Sep 2026 09:33PM UTC 301
88.51
GitHub Action Run
2 3.12 - 36351585699.2 27 Sep 2026 09:33PM UTC 301
88.51
GitHub Action Run
3 3.10 - 36351585699.3 27 Sep 2026 09:33PM UTC 301
88.51
GitHub Action Run
Source Files on build 36351585699
  • Tree
  • List 301
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1ced352b on github
  • Prev Build on main (#36346142626)
  • Next Build on main (#36387064470)
  • 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