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

Function test_insert_change_computes_hash

atomic-core/src/change/store.rs:610–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608
609 #[test]
610 fn test_insert_change_computes_hash() {
611 let store = MemoryChangeStore::new();
612 let change = create_test_change("Auto hash", b"data");
613
614 let hash = store.insert_change(change).unwrap();
615
616 assert!(store.has_change(&hash));
617 }
618
619 #[test]
620 fn test_remove() {

Callers

nothing calls this directly

Calls 3

create_test_changeFunction · 0.70
unwrapMethod · 0.45
insert_changeMethod · 0.45

Tested by

no test coverage detected