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

eclipse-aascw / aas-core-codegen / 38799476070

15 Oct 2026 08:07PM UTC coverage: 90.127% (-0.02%) from 90.142%
38799476070

push

github

web-flow
Support list literals and append (#849)

We support list literals, *e.g.*, ``for prime in [2, 3, 5, 7]:``, and
``append`` on local lists, *e.g.*, ``result.append(len(text))``, in all
the targets, so that the meta-model can build lists in the verification
functions. An empty list literal needs a declared type, *e.g.*,
``result: List[int] = []``.

We allow ``append`` only on a local list variable which is never
aliased. Go appends with ``items = append(items, item)``, which gives
a new slice whenever the array beneath has to grow, and C++ copies the
lists on assignment, so the aliases would diverge from Python.

We also infer in Go the is-pointer of the collection of a generator,
which crashed on ``all(... for x in f(self.y))``.

356 of 406 new or added lines in 13 files covered. (87.68%)

45616 of 50613 relevant lines covered (90.13%)

2.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.41
/aas_core_codegen/cpp/optionaling.py


Source Not Available

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