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:634–641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

632
633 #[test]
634 fn test_insert_change_computes_hash() {
635 let store = MemoryChangeStore::new();
636 let change = create_test_change("Auto hash", b"data");
637
638 let hash = store.insert_change(change).unwrap();
639
640 assert!(store.has_change(&hash));
641 }
642
643 #[test]
644 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