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

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

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2026 09:01AM UTC
Jobs 3
Files 304
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 08:56AM UTC coverage: 88.433% (+0.09%) from 88.339%
36307766311

push

github

web-flow
Transpile member and index assignment targets (#779)

We support the assignments to a property (``obj.p = v``) and to a list
item (``xs[i] = v``) in the verification functions. Previously, C#,
Java, Go and C++ crashed on an assert, and TypeScript generated
``AasCommon.at(xs, i) = v``, which does not compile.

The type inference refuses the other targets with a message specific
to the kind of target, *e.g.*, tuple items, JSON-able values,
enumeration literals and methods.

The targets follow the Python semantics:

* C# assigns directly (``item.Texts[^1] = text;``).
* Java uses setters and ``List.set``, and passes ``null`` for empty
  optionals (``item.setMaybeText(other.getMaybeText().orElse(null));``).
* Go uses setters, and copies a non-optional value into a pointer
  with the new ``aascommon.NewAndPointTo``. It replaces ``NewBool``,
  ``NewInt``, ``NewInt64``, ``NewFloat64`` and ``NewString``, which
  breaks the clients calling them.
* TypeScript uses the new ``AasCommon.setAt``, which resolves negative
  indices and throws on an index out of range instead of growing
  the array.
* C++ reports that the assignment is not supported yet, since its
  vectors are copied by value.

We test the semantics with the new common meta-model
``assignment_targets.py`` and generated unit tests which call its
verification functions in all the SDKs except C++.

219 of 243 new or added lines in 22 files covered. (90.12%)

40392 of 45675 relevant lines covered (88.43%)

2.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
77.03
0.01% aas_core_codegen/golang/transpilation.py
7
76.41
0.28% aas_core_codegen/java/transpilation.py
4
81.09
2.08% aas_core_codegen/intermediate/type_inference.py
4
78.01
-0.1% aas_core_codegen/typescript/transpilation.py
2
78.9
-0.06% aas_core_codegen/csharp/transpilation.py
Jobs
ID Job ID Ran Files Coverage
1 3.10 - 36307766311.1 27 Sep 2026 09:04AM UTC 304
88.43
GitHub Action Run
2 3.12 - 36307766311.2 27 Sep 2026 09:04AM UTC 304
88.43
GitHub Action Run
3 3.11 - 36307766311.3 27 Sep 2026 09:04AM UTC 304
88.43
GitHub Action Run
Source Files on build 36307766311
  • Tree
  • List 304
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 32265eb4 on github
  • Prev Build on main (#36304613048)
  • Next Build on main (#36315076086)
  • 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