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

Function test_builder_with_previous

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

Source from the content-addressed store, hash-verified

905
906 #[test]
907 fn test_builder_with_previous() {
908 let prev = Hash::of(b"prev-attest");
909 let a = Attestation::builder("sess-2", make_agent())
910 .previous_attestation(prev)
911 .build();
912
913 assert!(a.is_chained());
914 assert_eq!(a.previous_attestation, Some(prev));
915 }
916
917 #[test]
918 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