MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / attestation_entry_never_a_row

Function attestation_entry_never_a_row

atomic-cli/src/commands/intent/list.rs:494–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492
493 #[test]
494 fn attestation_entry_never_a_row() {
495 // After attesting, the attestation entry (attestations/…) NEVER appears as
496 // its own intent row: vault_intent_list yields exactly the N intents.
497 let (repo, ids, _dir) = repo_with_intents(3);
498 let kp = KeyPair::generate();
499 let node = attest_with(&repo, &ids[0], &kp);
500 write_tracked(&repo, &ids[0], &node);
501
502 let listed = repo.vault_intent_list(None).unwrap();
503 assert_eq!(listed.len(), 3, "exactly the 3 intents, no attestation row");
504 assert!(
505 listed.iter().all(|i| !i.id.starts_with("attestations/")),
506 "no attestations/ path leaks into the intent listing"
507 );
508 }
509}

Callers

nothing calls this directly

Calls 5

repo_with_intentsFunction · 0.85
vault_intent_listMethod · 0.80
attest_withFunction · 0.70
write_trackedFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected