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

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

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2026 08:01AM UTC
Jobs 3
Files 299
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

27 Sep 2026 07:55AM UTC coverage: 88.339% (+0.01%) from 88.325%
36304613048

push

github

web-flow
Check the argument of ``len`` and support tuples (#778)

The type inference accepted ``len`` on an optional without a check for
``None`` (``len(self.text) > 0`` with ``text: Optional[str]``), and on
any other type such as ``int``. We now refuse an optional argument
unless it has been narrowed, and accept only strings, bytearrays,
lists, tuples, JSON-able arrays and JSON-able objects, since we know
how to compute the length only of these types in all the targets.

We transpile ``len`` on tuples in all the targets. TypeScript uses
the native ``length``, while Go and Java get a method on the generated
``TupleN`` types (``Len()`` and ``size()``, respectively). C++ and C#
get a helper each, ``common::LenTuple`` and ``TupleHelpers.Len``:

    template<typename... T>
    size_t LenTuple(const std::tuple<T...>&) {
      return sizeof...(T);
    }

The common meta-model ``tuples`` covers ``len`` on a tuple property,
on a narrowed optional tuple and on a tuple literal.

20 of 20 new or added lines in 6 files covered. (100.0%)

40165 of 45467 relevant lines covered (88.34%)

2.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.11 - 36304613048.1 27 Sep 2026 08:04AM UTC 299
88.34
GitHub Action Run
2 3.12 - 36304613048.2 27 Sep 2026 08:04AM UTC 299
88.34
GitHub Action Run
3 3.10 - 36304613048.3 27 Sep 2026 08:04AM UTC 299
88.34
GitHub Action Run
Source Files on build 36304613048
  • Tree
  • List 299
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 74119ea6 on github
  • Prev Build on main (#36302210521)
  • Next Build on main (#36307766311)
  • 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