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

Function test_is_chained_true

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

Source from the content-addressed store, hash-verified

1123
1124 #[test]
1125 fn test_is_chained_true() {
1126 let a = Attestation::builder("s", make_agent())
1127 .previous_attestation(Hash::of(b"prev"))
1128 .build();
1129 assert!(a.is_chained());
1130 }
1131
1132 // -------------------------------------------------------------------------
1133 // Display

Callers

nothing calls this directly

Calls 3

make_agentFunction · 0.85
previous_attestationMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected