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

Function test_builder_with_previous

atomic-core/src/change/attestation.rs:1428–1436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1426
1427 #[test]
1428 fn test_builder_with_previous() {
1429 let prev = Hash::of(b"prev-attest");
1430 let a = Attestation::builder("sess-2", make_agent())
1431 .previous_attestation(prev)
1432 .build();
1433
1434 assert!(a.is_chained());
1435 assert_eq!(a.previous_attestation, Some(prev));
1436 }
1437
1438 #[test]
1439 fn test_builder_with_notes() {

Callers

nothing calls this directly

Calls 3

make_agentFunction · 0.85
previous_attestationMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected