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

eclipse-aascw / aas-core-codegen / 35132326392
87%

Build:
DEFAULT BRANCH: main
Ran 16 Sep 2026 06:13PM UTC
Jobs 3
Files 269
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

16 Sep 2026 06:06PM UTC coverage: 85.341% (+0.008%) from 85.333%
35132326392

push

github

web-flow
Compose the TypeScript XML de-serialization (#698)

The XML de-serialization in TypeScript was written out property by property.
Instead, we give every parser one shape,

    type ContentParser<T> = (cursor) => Either<T, DeserializationError>

and compose them.

The framing is shared as well. ``parseElementContent`` parses the content and
consumes the closing tag; ``parseNamedElement`` is that plus an opening tag,
which retires both ``parseNamedVElement`` and ``parseNamedClassElement`` --
they only ever differed in what they read between the tags, and that is now
the argument. The property loop calls the tail directly, since it has already
read the opening tag and switched on its local name; there is deliberately
no third framer for a property, as it would duplicate ``parseNamedElement``
for the sake of one check. That check, that a property does not occur twice,
sits in front of the parse instead, and only the message it reports is
shared, in ``duplicatePropertyError``.

No closure is allocated any more. The previous code built its item parser
as an arrow at the call site. Everything is now a hoisted function
declaration, composed by passing function references, so the order in which
we emit them does not matter either.

``xmlization.ts`` for the AAS meta-model goes from 17,216 to 11,439 lines:
the class parsers from 12,176 to 6,498 (-47%) and the dispatchers from 1,773
to 1,144 (-35%).

397 of 413 new or added lines in 1 file covered. (96.13%)

34139 of 40003 relevant lines covered (85.34%)

2.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
96.13
-0.58% aas_core_codegen/typescript/lib/_generate_xmlization.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 35132326392.1 16 Sep 2026 06:14PM UTC 269
85.34
GitHub Action Run
2 3.10 - 35132326392.2 16 Sep 2026 06:14PM UTC 269
85.34
GitHub Action Run
3 3.11 - 35132326392.3 16 Sep 2026 06:14PM UTC 269
85.34
GitHub Action Run
Source Files on build 35132326392
  • Tree
  • List 269
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1b9131e4 on github
  • Prev Build on main (#35120798618)
  • Next Build on main (#35148849242)
  • 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