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

facet-rs / facet / 19775426569
58%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2025 11:08PM UTC
Jobs 1
Files 151
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

28 Nov 2025 11:06PM UTC coverage: 60.423% (+0.8%) from 59.624%
19775426569

push

github

fasterthanlime
Add facet-assert/diff/pretty support for facet_value::Value

This adds full support for comparing, diffing, and pretty-printing
`facet_value::Value` types through the facet reflection system.

Key changes:

- facet-reflect: Add `PeekDynamicValue` for inspecting DynamicValue types
  - Methods for accessing scalars (bool, number, string, bytes)
  - Iterators for arrays and objects
  - `Peek::into_dynamic_value()` method

- facet-assert: Enable structural comparison between Value and concrete types
  - `value!([1, 2, 3])` can now be compared with `vec![1, 2, 3]`
  - Value strings compare equal to String
  - Value numbers compare equal to numeric types
  - Handles nested structures recursively

- facet-diff: Add DynamicValue diffing support
  - Arrays produce Diff::Sequence with element diffs
  - Objects produce Diff::User with field-level diffs

- facet-pretty: Add DynamicValue formatting
  - Handles all DynValueKind variants
  - Proper indentation for nested arrays/objects

- Tests: 27 tests covering all functionality

356 of 588 new or added lines in 5 files covered. (60.54%)

2 existing lines in 2 files now uncovered.

17185 of 28441 relevant lines covered (60.42%)

152.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
17
39.75
39.75% facet-diff/src/diff.rs
28
70.43
0.07% facet-pretty/src/printer.rs
46
53.54
facet-reflect/src/peek/dynamic_value.rs
141
51.31
5.95% facet-assert/src/same.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
39.75
39.75% facet-diff/src/diff.rs
1
70.43
0.07% facet-pretty/src/printer.rs
Jobs
ID Job ID Ran Files Coverage
1 19775426569.1 28 Nov 2025 11:08PM UTC 151
60.42
GitHub Action Run
Source Files on build 19775426569
  • Tree
  • List 151
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0b4dfe22 on github
  • Prev Build on main (#19775204366)
  • Next Build on main (#19775899860)
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