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

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

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 09:38PM UTC
Jobs 3
Files 308
Run time 2min
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

29 Sep 2026 09:33PM UTC coverage: 88.826% (-0.08%) from 88.907%
36634104500

push

github

web-flow
Transpile sets of primitives (#796)

We transpile the local sets, the set arguments and the operations on
sets, so that the meta-model can, *e.g.*, check the uniqueness:

    seen: Set[str] = set()
    for text in texts:
        if text in seen:
            return False
        seen.add(text)

A set holds booleans, integers, strings, constrained primitives of them
or enumeration literals. We refuse the other items, each with its exact
reason, *e.g.*, the floats since the targets disagree on NaN and -0.0.

The arguments are either read-only, ``AbstractSet[T]``, or mutable,
``Set[T]``, just as ``Sequence`` and ``List``, also under ``Optional``.
A set argument must receive a set of the same items, so that we can
pass the constant sets as read-only arguments. The constant sets must
be now declared as ``AbstractSet[...] = constant_set(...)``, and we
migrated all the meta-models accordingly.

We support ``set()``, ``add``, ``in``, ``len``, ``intersection``,
``difference`` and the iteration over a set, where the order of
the items differs among the targets. We refuse to alias a set, as C++
copies it while the other targets share it, and to mutate a set in
the loop over it.

The membership in a set is now a constant-time look-up in C++,
``s.find(x) != s.end()``, also for the constant sets.

The constant sets of enumeration literals in C# now hold non-nullables,
*e.g.*, ``HashSet<KeyTypes>`` instead of ``HashSet<KeyTypes?>``, so
that we can pass them as set arguments. We made them nullable in #248
only because we could not unwrap the narrowed nullables at the time,
which we can now, *e.g.*, ``Contains(that.DataType.Value)``. This breaks
the public API of the C# SDK.

We allow the calls as statements in the nested blocks as well, and fix
the constant sets of booleans, integers and floats in Go, which did not
compile.

The common meta-model ``sets`` covers the feature.

500 of 648 new or added lines in 62 files covered. (77.16%)

11 existing lines in 9 files now uncovered.

43612 of 49098 relevant lines covered (88.83%)

2.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
93.12
-1.87% aas_core_codegen/cpp/lib/_generate_xmlization.py
8
95.36
-1.44% aas_core_codegen/python/lib/_generate_jsonization.py
8
94.52
-1.2% aas_core_codegen/python/lib/_generate_xmlization.py
7
86.79
1.02% aas_core_codegen/intermediate/type_inference.py
6
93.88
-2.07% aas_core_codegen/cpp/lib/_generate_enhancing.py
6
95.43
-0.71% aas_core_codegen/cpp/lib/_generate_jsonization.py
5
77.95
0.52% aas_core_codegen/cpp/transpilation.py
5
80.75
0.03% aas_core_codegen/csharp/transpilation.py
5
63.51
1.71% aas_core_codegen/golang/lib/_generate_constants.py
4
92.8
-0.68% aas_core_codegen/cpp/lib/_generate_verification.py
4
93.41
-2.29% aas_core_codegen/golang/lib/_generate_enhancing.py
4
82.1
0.28% aas_core_codegen/java/transpilation.py
4
83.17
-0.83% aas_core_codegen/jsonschema/main.py
4
86.93
-0.54% aas_core_codegen/python/lib/_generate_verification.py
4
95.67
-0.84% aas_core_codegen/typescript/lib/_generate_jsonization.py
3
81.38
0.33% aas_core_codegen/golang/transpilation.py
3
95.06
-0.14% aas_core_codegen/intermediate/_types.py
2
94.07
-0.7% aas_core_codegen/cpp/lib/_generate_iteration.py
2
96.23
-1.23% aas_core_codegen/cpp/lib/_generate_visitation.py
2
91.51
-1.76% aas_core_codegen/cpp/over.py
2
94.87
-0.98% aas_core_codegen/csharp/lib/_generate_copying.py
2
94.24
-1.0% aas_core_codegen/csharp/lib/_generate_enhancing.py
2
95.57
-0.3% aas_core_codegen/csharp/lib/_generate_jsonization.py
2
84.9
-0.29% aas_core_codegen/csharp/lib/_generate_types.py
2
89.33
-0.32% aas_core_codegen/csharp/lib/_generate_verification.py
2
96.15
-1.5% aas_core_codegen/csharp/lib/_generate_xml_common.py
2
90.7
-1.07% aas_core_codegen/csharp/tests/_generate_test_copying.py
2
95.97
-0.35% aas_core_codegen/golang/lib/_generate_jsonization.py
2
87.08
-0.27% aas_core_codegen/golang/lib/_generate_types.py
2
90.04
-0.35% aas_core_codegen/golang/lib/_generate_verification.py
2
97.28
-0.35% aas_core_codegen/golang/lib/_generate_xmlization.py
2
89.86
-0.63% aas_core_codegen/infer_for_schema/_inline.py
2
96.06
-0.96% aas_core_codegen/java/lib/_generate_copying.py
2
94.76
-0.82% aas_core_codegen/java/lib/_generate_enhancing.py
2
96.61
-0.28% aas_core_codegen/java/lib/_generate_jsonization.py
2
86.72
-0.2% aas_core_codegen/java/lib/_generate_types.py
2
89.32
-0.33% aas_core_codegen/java/lib/_generate_verification.py
2
94.74
-1.45% aas_core_codegen/java/tests/_generate_test_copying.py
2
87.28
-0.26% aas_core_codegen/python/lib/_generate_types.py
2
88.42
-0.23% aas_core_codegen/typescript/lib/_generate_types.py
2
88.87
-0.33% aas_core_codegen/typescript/lib/_generate_verification.py
2
79.93
0.24% aas_core_codegen/typescript/transpilation.py
2
77.05
-0.28% aas_core_codegen/xsd/main.py
1
73.01
0.38% aas_core_codegen/cpp/common.py
1
76.36
0.3% aas_core_codegen/python/transpilation.py

Coverage Regressions

Lines Coverage ∆ File
3
77.95
0.52% aas_core_codegen/cpp/transpilation.py
1
80.75
0.03% aas_core_codegen/csharp/transpilation.py
1
81.38
0.33% aas_core_codegen/golang/transpilation.py
1
86.79
1.02% aas_core_codegen/intermediate/type_inference.py
1
82.1
0.28% aas_core_codegen/java/transpilation.py
1
88.0
-0.15% aas_core_codegen/parse/_rules.py
1
76.36
0.3% aas_core_codegen/python/transpilation.py
1
95.67
-0.84% aas_core_codegen/typescript/lib/_generate_jsonization.py
1
79.93
0.24% aas_core_codegen/typescript/transpilation.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 36634104500.1 29 Sep 2026 09:42PM UTC 308
88.83
GitHub Action Run
2 3.10 - 36634104500.2 29 Sep 2026 09:42PM UTC 308
88.83
GitHub Action Run
3 3.11 - 36634104500.3 29 Sep 2026 09:42PM UTC 308
88.83
GitHub Action Run
Source Files on build 36634104500
  • Tree
  • List 308
  • Changed 67
  • Source Changed 0
  • Coverage Changed 67
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6f330253 on github
  • Prev Build on main (#36609585606)
  • Next Build on main (#36640953571)
  • 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