()
| 650 | |
| 651 | #[test] |
| 652 | fn attestation_entry_never_a_row() { |
| 653 | // After attesting, the attestation entry (attestations/…) NEVER appears as |
| 654 | // its own intent row: vault_intent_list yields exactly the N intents. |
| 655 | let (repo, ids, _dir) = repo_with_intents(3); |
| 656 | let kp = KeyPair::generate(); |
| 657 | let node = attest_with(&repo, &ids[0], &kp); |
| 658 | write_tracked(&repo, &ids[0], &node); |
| 659 | |
| 660 | let listed = repo.vault_intent_list(None).unwrap(); |
| 661 | assert_eq!(listed.len(), 3, "exactly the 3 intents, no attestation row"); |
| 662 | assert!( |
| 663 | listed.iter().all(|i| !i.id.starts_with("attestations/")), |
| 664 | "no attestations/ path leaks into the intent listing" |
| 665 | ); |
| 666 | } |
| 667 | } |
nothing calls this directly
no test coverage detected