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

Function test_remove_nonexistent

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

Source from the content-addressed store, hash-verified

657
658 #[test]
659 fn test_remove_nonexistent() {
660 let store = MemoryChangeStore::new();
661 let hash = Hash::of(b"nonexistent");
662
663 let removed = store.remove(&hash);
664 assert!(removed.is_none());
665 }
666
667 #[test]
668 fn test_clear() {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected