judgment_fn! {
fn check_crate_item(
program: Program,
c: CrateItem,
crate_id: CrateId,
) => () {
/* rules omitted */
}
}
Source: crates/formality-rust/src/check/mod.rs:180
The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.
trait
| Line | Coverage | Source |
| 189 | 7 | (check_trait(program, Env::default(), v, crate_id) => ()) |
| | ──────── ("trait") |
| 191 | 331 | (check_crate_item(program, CrateItem::Trait(v), crate_id) => ()) |
trait impl
| Line | Coverage | Source |
| 195 | 23 | (check_trait_impl(program, v, crate_id) => ()) |
| 196 | 5 | (check_drop_impl_always_applicable(program, v, crate_id) => ()) |
| | ──────── ("trait impl") |
| 198 | 327 | (check_crate_item(program, CrateItem::TraitImpl(v), crate_id) => ()) |
adt
| Line | Coverage | Source |
| 202 | 5 | (check_adt(program, s) => ()) |
| | ──────── ("adt") |
| 204 | 71 | (check_crate_item(program, CrateItem::AdtItem(s), crate_id) => ()) |
free fn
| Line | Coverage | Source |
| 208 | 116 | (check_free_fn(program, f, crate_id) => ()) |
| | ──────── ("free fn") |
| 210 | 291 | (check_crate_item(program, CrateItem::Fn(f), crate_id) => ()) |
neg trait impl
| Line | Coverage | Source |
| 214 | 4 | (check_neg_trait_impl(program, i) => ()) |
| | ──────── ("neg trait impl") |
| 216 | 3 | (check_crate_item(program, CrateItem::NegTraitImpl(i), crate_id) => ()) |
test
| Line | Coverage | Source |
| 220 | ✗ | (check_test(program, t) => ()) |
| | ──────── ("test") |
| 222 | ✗ | (check_crate_item(program, CrateItem::Test(t), crate_id) => ()) |
feature gate
| Line | Coverage | Source |
| | ──────── ("feature gate") |
| 227 | 84 | (check_crate_item(program, CrateItem::FeatureGate(_feature_gate), crate_id) => ()) |
How to read this page