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

facet-rs / facet / 19870405453
58%

Build:
DEFAULT BRANCH: main
Ran 02 Dec 2025 07:10PM UTC
Jobs 1
Files 166
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

02 Dec 2025 07:08PM UTC coverage: 58.959% (+0.04%) from 58.917%
19870405453

push

github

fasterthanlime
Fix optional child fields with default not being initialized

When a struct has an optional child node field using Option<T> with both
#[facet(kdl::child)] and #[facet(default)], parsing would fail with
'Field was not initialized' if the child node was absent from the KDL input.

The fix adds code in deserialize_document_with_fields to set defaults for
missing optional child fields after processing all nodes in the document.
Also added the same fix for the solver-based deserialization path.

Added regression test: test_optional_child_with_default

14 of 21 new or added lines in 1 file covered. (66.67%)

20322 of 34468 relevant lines covered (58.96%)

544.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
68.25
-0.02% facet-kdl/src/deserialize.rs
Jobs
ID Job ID Ran Files Coverage
1 19870405453.1 02 Dec 2025 07:10PM UTC 166
58.96
GitHub Action Run
Source Files on build 19870405453
  • Tree
  • List 166
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e0459e2a on github
  • Prev Build on main (#19867196393)
  • Next Build on main (#19871315706)
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