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

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

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 10:45PM UTC
Jobs 3
Files 308
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

29 Sep 2026 10:40PM UTC coverage: 89.111% (+0.3%) from 88.826%
36640953571

push

github

web-flow
Support set properties (#797)

We allow the sets of primitives and enumeration literals as properties,
``Set[T]`` and ``Optional[Set[T]]``, which the SDKs keep in the same
hash sets as the local sets, so that a set property can be passed
wherever an ``AbstractSet`` argument is expected:

    class Collection(DBC):
        texts: Set[str]
        optional_directions: Optional[Set[Direction]]

We serialize a set as an array of its items sorted in the same order
in all the SDKs: ``false`` before ``true``, the integers numerically,
and the strings by their code points. The enumeration literals follow
their serialized values, ranked at generation time, *e.g.*,
``RankOfDirection``. C#, Java, TypeScript and C++ compare the strings
by UTF-16 code units by default, so we generate a comparator by code
points for them.

The de-serialization accepts the items in any order, but refuses
a duplicate at its own index, as silently dropping it would lose data.
The verification of the constrained items reports the position of
the item in the sorted order, so that the path resolves in
the serialized array. The JSON schema declares ``uniqueItems``, while
the XSD represents a set just as a list of primitives.

We generate ``OverXOrEmpty`` for the optional sets in C#, Java, Python
and TypeScript, just as for the optional lists.

We hash the sets of enumeration literals in C++ with a generated
``common::EnumHash``, as C++11 does not specialize ``std::hash`` for
enumerations. This also affects the constant and local sets.

We import ``java.util`` explicitly in the Java jsonization and in
the generated tests of copying, as the class ``Collection`` of
a meta-model clashed with the wildcard import of ``java.util.*``.

The class ``Collection`` in the common meta-model ``sets`` covers
the feature.

764 of 806 new or added lines in 63 files covered. (94.79%)

2 existing lines in 2 files now uncovered.

44348 of 49767 relevant lines covered (89.11%)

2.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
74.07
1.06% aas_core_codegen/cpp/common.py
5
84.77
0.02% aas_core_codegen/csharp/common.py
5
86.38
-0.57% aas_core_codegen/typescript/common.py
3
93.88
0.76% aas_core_codegen/cpp/lib/_generate_xmlization.py
3
91.89
0.18% aas_core_codegen/java/common.py
2
96.01
0.44% aas_core_codegen/csharp/lib/_generate_jsonization.py
2
80.59
1.54% aas_core_codegen/golang/common.py
2
96.69
0.08% aas_core_codegen/java/lib/_generate_jsonization.py
2
84.24
1.07% aas_core_codegen/jsonschema/main.py
1
96.15
0.72% aas_core_codegen/cpp/lib/_generate_jsonization.py
1
85.22
0.32% aas_core_codegen/csharp/lib/_generate_types.py
1
95.83
-0.75% aas_core_codegen/golang/tests/_generate_aastesting_deep_equal.py
1
86.68
-0.04% aas_core_codegen/java/lib/_generate_types.py
1
89.56
0.24% aas_core_codegen/java/lib/_generate_verification.py
1
98.07
-0.09% aas_core_codegen/java/lib/_generate_xmlization.py
1
87.5
0.22% aas_core_codegen/python/lib/_generate_types.py
1
95.8
1.28% aas_core_codegen/python/lib/_generate_xmlization.py
1
97.73
-2.27% aas_core_codegen/python/tests/_generate_test_for_over_x_or_empty.py
1
96.46
0.79% aas_core_codegen/typescript/lib/_generate_jsonization.py
1
77.48
0.44% aas_core_codegen/xsd/main.py

Coverage Regressions

Lines Coverage ∆ File
1
96.01
0.44% aas_core_codegen/csharp/lib/_generate_jsonization.py
1
84.24
1.07% aas_core_codegen/jsonschema/main.py
Jobs
ID Job ID Ran Files Coverage
1 3.10 - 36640953571.1 29 Sep 2026 10:48PM UTC 308
89.11
GitHub Action Run
2 3.11 - 36640953571.2 29 Sep 2026 10:48PM UTC 308
89.11
GitHub Action Run
3 3.12 - 36640953571.3 29 Sep 2026 10:48PM UTC 308
89.11
GitHub Action Run
Source Files on build 36640953571
  • Tree
  • List 308
  • Changed 66
  • Source Changed 0
  • Coverage Changed 66
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f2072a71 on github
  • Prev Build on main (#36634104500)
  • Next Build on main (#36686426544)
  • 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