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

Function content_hash_is_deterministic

atomic-canonical/tests/roundtrip.rs:138–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136
137#[test]
138fn content_hash_is_deterministic() {
139 let a = lift_intent(&frontmatter(), BODY).unwrap();
140 let b = lift_intent(&frontmatter(), BODY).unwrap();
141 assert_eq!(a.compute_content_hash(), b.compute_content_hash());
142}
143
144#[test]
145fn tampering_a_signed_field_breaks_verification() {

Callers

nothing calls this directly

Calls 3

lift_intentFunction · 0.85
frontmatterFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected