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

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

Build:
DEFAULT BRANCH: main
Ran 30 Sep 2026 11:15PM UTC
Jobs 3
Files 309
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

30 Sep 2026 11:03PM UTC coverage: 89.812% (+0.4%) from 89.397%
36789061213

push

github

web-flow
Transpile assert statements (#811)

We transpile ``assert`` statements in the verification functions and
the understood methods, *e.g.*:

    assert text is not None, "The caller must check the text"

C++ throws ``std::logic_error``, C# ``InvalidOperationException``,
Java ``IllegalStateException``, Go panics, TypeScript throws ``Error``,
and Python keeps the ``assert``. The message is optional and can be
a string literal or an f-string. Without it, the targets report
the condition as written in the meta-model.

As mypy, the type inference narrows by the condition after
the assertion, but not in the message, which runs only on failure.

The f-string messages uncovered three bugs in the transpiled f-strings.
Python and TypeScript crashed on a fragment ending in a space, Go
emitted a double comma in ``fmt.Sprintf``, and C++ stringified
a ``len(...)`` with the undeclared ``wstringification::to_wstring``.

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

220 of 251 new or added lines in 19 files covered. (87.65%)

45190 of 50316 relevant lines covered (89.81%)

2.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
80.15
2.02% aas_core_codegen/cpp/transpilation.py
3
83.39
2.55% aas_core_codegen/csharp/transpilation.py
3
83.3
1.93% aas_core_codegen/golang/transpilation.py
3
83.62
1.58% aas_core_codegen/java/transpilation.py
3
88.01
-0.04% aas_core_codegen/parse/_rules.py
3
80.56
4.19% aas_core_codegen/python/transpilation.py
3
82.08
2.15% aas_core_codegen/typescript/transpilation.py
2
79.4
3.09% aas_core_codegen/cpp/optionaling.py
2
80.13
2.9% aas_core_codegen/golang/pointering.py
2
79.3
3.34% aas_core_codegen/java/optional.py
2
90.92
1.78% aas_core_codegen/parse/tree.py
1
88.81
1.5% aas_core_codegen/intermediate/type_inference.py
1
61.87
0.0% aas_core_codegen/typescript/lib/_generate_constants.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 36789061213.1 30 Sep 2026 11:16PM UTC 309
89.81
GitHub Action Run
2 3.11 - 36789061213.2 30 Sep 2026 11:16PM UTC 309
89.81
GitHub Action Run
3 3.10 - 36789061213.3 30 Sep 2026 11:16PM UTC 309
89.81
GitHub Action Run
Source Files on build 36789061213
  • Tree
  • List 309
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8633ea9f on github
  • Prev Build on main (#36777200058)
  • Next Build on main (#36790916256)
  • 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