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

Function test_change_finalize

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

Source from the content-addressed store, hash-verified

983
984 #[test]
985 fn test_change_finalize() {
986 let mut change = Change::empty(ChangeHeader::new("Test"));
987 change.append_contents(b"content");
988 change.finalize();
989 assert_eq!(change.hashed.contents_hash, Hash::of(b"content"));
990 }
991
992 #[test]
993 fn test_change_hash() {

Callers

nothing calls this directly

Calls 2

append_contentsMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected