Skip to content

Fix XML paths of container items in C++ - #842

Closed
mristin wants to merge 1 commit into
mainfrom
mristin/Fix-XML-paths-of-container-items-in-C++
Closed

mristin wants to merge 1 commit into
mainfrom
mristin/Fix-XML-paths-of-container-items-in-C++

Conversation

@mristin

@mristin mristin commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

We reported the errors in the items of the lists, the sets and the tuples with a redundant segment of the item element in C++, e.g., texts/*[0]/v instead of texts/*[0], as the item readers prepended the element segment and the containers prepended the index on top of it. The index already selects the item element, so we now replace the element segment with the index, and report the same paths as the other SDKs:

texts/*[0]/v           ->  texts/*[0]
items/*[1]/someItem/x  ->  items/*[1]/x
pair/*[0]/v1           ->  pair/*[0]

We reported the errors in the items of the lists, the sets and the tuples
with a redundant segment of the item element in C++, *e.g.*,
``texts/*[0]/v`` instead of ``texts/*[0]``, as the item readers prepended
the element segment and the containers prepended the index on top of it.
The index already selects the item element, so we now replace the element
segment with the index, and report the same paths as the other SDKs:

    texts/*[0]/v           ->  texts/*[0]
    items/*[1]/someItem/x  ->  items/*[1]/x
    pair/*[0]/v1           ->  pair/*[0]
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 38167007250

Coverage increased (+0.001%) to 90.14%

Details

  • Coverage increased (+0.001%) from the base build.
  • Patch coverage: 7 of 7 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 50213
Covered Lines: 45262
Line Coverage: 90.14%
Coverage Strength: 2.7 hits per line

💛 - Coveralls

@mristin mristin closed this Oct 11, 2026
@mristin
mristin deleted the mristin/Fix-XML-paths-of-container-items-in-C++ branch October 11, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants