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

facet-rs / facet / 19770000397
58%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2025 05:07PM UTC
Jobs 1
Files 140
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 05:05PM UTC coverage: 60.41% (+1.0%) from 59.428%
19770000397

push

github

fasterthanlime
Add facet-assert crate for structural assertions without PartialEq

This crate provides `assert_same!` which compares values structurally
via Facet reflection, without requiring PartialEq or Debug.

Key features:
- No PartialEq required - uses Facet reflection
- Structural sameness - different types with same structure are "same"
- Smart diffs showing exactly which field at which path differs
- Opaque types fail with clear error messages

Example:
```rust
#[derive(Facet)]
struct Config { host: String, port: u16 }

let a = Config { host: "localhost".into(), port: 8080 };
let b = Config { host: "localhost".into(), port: 8080 };
assert_same!(a, b);  // No PartialEq needed!
```

185 of 342 new or added lines in 2 files covered. (54.09%)

541 existing lines in 7 files now uncovered.

15311 of 25345 relevant lines covered (60.41%)

160.52 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
93.55
facet-assert/src/lib.rs
153
45.36
facet-assert/src/same.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.64
0.08% facet-macros-emit/src/process_struct.rs
3
89.71
0.12% facet-macros-emit/src/parsed.rs
13
77.51
0.04% facet-json/src/serialize.rs
46
64.9
5.68% facet-toml/src/serialize/mod.rs
72
79.39
2.1% facet-reflect/src/partial/mod.rs
107
77.52
-0.3% facet-reflect/src/partial/partial_api/misc.rs
298
62.99
0.18% facet-json/src/deserialize.rs
Jobs
ID Job ID Ran Files Coverage
1 19770000397.1 28 Nov 2025 05:07PM UTC 140
60.41
GitHub Action Run
Source Files on build 19770000397
  • Tree
  • List 140
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 07a8f061 on github
  • Prev Build on main (#19768140706)
  • Next Build on main (#19770016110)
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