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

Function test_change_finalize

atomic-core/src/change/change.rs:1643–1648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1641
1642 #[test]
1643 fn test_change_finalize() {
1644 let mut change = Change::empty(ChangeHeader::new("Test"));
1645 change.append_contents(b"content");
1646 change.finalize();
1647 assert_eq!(change.hashed.contents_hash, Hash::of(b"content"));
1648 }
1649
1650 #[test]
1651 fn test_change_hash() {

Callers

nothing calls this directly

Calls 2

append_contentsMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected