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

Function test_change_finalize

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

Source from the content-addressed store, hash-verified

1393
1394 #[test]
1395 fn test_change_finalize() {
1396 let mut change = Change::empty(ChangeHeader::new("Test"));
1397 change.append_contents(b"content");
1398 change.finalize();
1399 assert_eq!(change.hashed.contents_hash, Hash::of(b"content"));
1400 }
1401
1402 #[test]
1403 fn test_change_hash() {

Callers

nothing calls this directly

Calls 2

append_contentsMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected