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

Function test_change_finalize

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

Source from the content-addressed store, hash-verified

1004
1005 #[test]
1006 fn test_change_finalize() {
1007 let mut change = Change::empty(ChangeHeader::new("Test"));
1008 change.append_contents(b"content");
1009 change.finalize();
1010 assert_eq!(change.hashed.contents_hash, Hash::of(b"content"));
1011 }
1012
1013 #[test]
1014 fn test_change_hash() {

Callers

nothing calls this directly

Calls 2

append_contentsMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected