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

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

Build:
DEFAULT BRANCH: main
Ran 12 Oct 2026 12:04AM UTC
Jobs 3
Files 309
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

11 Oct 2026 11:55PM UTC coverage: 90.141%. Remained the same
38186055326

push

github

web-flow
Report nested elements in C# XML text (#844)

The C# de-serialization threw an ``InvalidOperationException`` instead
of reporting an error when the content of a primitive started with
an element, *e.g.*, ``<someString><nested/></someString>``.
``XmlReader.ReadContentAs*`` throws it at an element node, and our
``catch`` filters did not cover it. We now check for an element before
the conversion in ``AsText``, which all the primitives go through:

    if (reader.NodeType == Xml.XmlNodeType.Element)
    {
        error = new Reporting.Error(
            $"Expected an XML content representing {typeof(T).Name}, " +
            $"but got a nested element {reader.Name}");
        return default!;
    }

The XML-RPC readers of ``<boolean>``, ``<double>`` and ``<string>`` had
the same bug, and get the same check. Moreover, the key of a struct
member was coalesced with ``?? throw`` before the error was checked, so
any error in a ``<name>`` surfaced as an ``InvalidOperationException``.
We now check the error first.

We add the live test data ``some_string_as_nested_element.xml`` for
all the targets, and a C# XML-RPC test with a nested element in
``<boolean>``, ``<double>``, ``<string>`` and ``<name>``.

45266 of 50217 relevant lines covered (90.14%)

2.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.12 - 38186055326.1 12 Oct 2026 12:08AM UTC 309
90.14
GitHub Action Run
2 3.10 - 38186055326.2 12 Oct 2026 12:08AM UTC 309
90.14
GitHub Action Run
3 3.11 - 38186055326.3 12 Oct 2026 12:08AM UTC 309
90.14
GitHub Action Run
Source Files on build 38186055326
  • Tree
  • List 309
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f9d82d5a on github
  • Prev Build on main (#38178357169)
  • Next Build on main (#38221506508)
  • 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