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

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

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 10:50AM UTC
Jobs 3
Files 313
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

02 Nov 2026 10:42AM UTC coverage: 90.341% (-0.008%) from 90.349%
41430932088

push

github

web-flow
Resolve negative indices at run time (#877)

In C++, C#, Java and Go, a negative list index known only at run time
was not counted from the back as in Python, and C++ ``xs[-1]`` on an
empty list was undefined behavior via ``.back()``. We now route all
list and JSON-array indices, literals included, through a per-target
helper which resolves a negative index and throws when out of range
so that the behavior in all targets is equal to that of Python:

* C++: ``common::At(xs, i)``,
* C#: ``Common.ListHelpers.At(xs, i)`` and ``SetAt(xs, i, v)``,
* Java: ``ListHelpers.at(xs, i)`` and ``ListHelpers.setAt(xs, i, v)``,
* Go: ``ourcommon.At(xs, i)`` and ``*ourcommon.PointerAt(xs, i) = v``.

Go writes go through a pointer since Go can not infer ``T`` in
``SetAt[T]([]T, int64, T)`` for a ``*Class`` written into an
``[]IClass``. TypeScript ``OurCommon.at`` now throws a ``RangeError``
instead of returning ``undefined``. The helpers are generated only if
the meta-model indexes a list.

We test reads and writes at negative run-time indices in the common
meta-model ``int_length_interplay``.

102 of 113 new or added lines in 9 files covered. (90.27%)

3 existing lines in 2 files now uncovered.

47028 of 52056 relevant lines covered (90.34%)

2.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
83.74
-0.1% aas_core_codegen/golang/transpilation.py
3
83.23
0.02% aas_core_codegen/csharp/transpilation.py
3
83.19
-0.53% aas_core_codegen/java/transpilation.py

Coverage Regressions

Lines Coverage ∆ File
2
83.19
-0.53% aas_core_codegen/java/transpilation.py
1
82.45
-0.12% aas_core_codegen/cpp/transpilation.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 41430932088.1 02 Nov 2026 10:54AM UTC 313
90.34
GitHub Action Run
2 3.10 - 41430932088.2 02 Nov 2026 10:54AM UTC 313
90.34
GitHub Action Run
3 3.11 - 41430932088.3 02 Nov 2026 10:54AM UTC 313
90.34
GitHub Action Run
Source Files on build 41430932088
  • Tree
  • List 313
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2aa1eecf on github
  • Prev Build on main (#41356886259)
  • 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