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

fktn-k / fkYAML / 28925996281
100%

Build:
DEFAULT BRANCH: develop
Ran 08 Jul 2026 07:42AM UTC
Jobs 1
Files 32
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

08 Jul 2026 07:39AM UTC coverage: 99.833% (-0.1%) from 99.939%
28925996281

push

github

web-flow
Fix brace initialization of empty collection nodes (issue #502) (#524)

* Fix brace initialization of empty collection nodes

Preserve the type of empty mapping and sequence nodes when they are passed
through brace initialization, e.g. node{node::mapping()}.

Previously this form selected the initializer-list constructor and treated the
single empty mapping node as a sequence element. Track whether initializer-list
entries were created directly from a basic_node and unwrap the narrow empty
collection case without changing existing scalar initializer-list behavior.

Add regression coverage for empty mapping/sequence brace initialization and keep
single scalar brace initialization as a one-element sequence.

* Fix node_ref_storage conversion for initializer-list nodes

Allow node_ref_storage to be implicitly constructed from basic_node lvalues and
rvalues so initializer_list elements preserve the direct-node marker across
compilers.

This keeps node{node::mapping()} and node{node::sequence()} on the intended
empty collection unwrap path instead of falling through to the generic variadic
constructor.

* Keep explicit node_ref_storage constructors

Restore explicit on the direct basic_node node_ref_storage constructors and
handle the initializer-list empty collection case through the variadic
constructor path instead.

GCC/Clang select the variadic constructor when creating initializer_list
elements for node{node::mapping()} and node{node::sequence()}. Mark that
storage as a direct node only when it receives exactly one basic_node argument,
so the initializer-list constructor can preserve empty collection nodes without
allowing broader implicit conversions.

Update the constructor documentation and add coverage for duplicate-anchor
destruction.

1416 of 1424 branches covered (99.44%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

5161 of 5164 relevant lines covered (99.94%)

403.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.09
-0.7% include/fkYAML/node.hpp
Jobs
ID Job ID Ran Files Coverage
1 28925996281.1 08 Jul 2026 07:42AM UTC 32
99.83
GitHub Action Run
Source Files on build 28925996281
  • Tree
  • List 32
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28925996281
  • b9d343dc on github
  • Prev Build on develop (#28906424346)
  • Next Build on develop (#29225173731)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc