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

Function test_get_change_not_found

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

Source from the content-addressed store, hash-verified

705
706 #[test]
707 fn test_get_change_not_found() {
708 let store = MemoryChangeStore::new();
709 let hash = Hash::of(b"nonexistent");
710
711 let result = store.get_change(&hash);
712 assert!(result.is_err());
713 assert!(matches!(result.unwrap_err(), MemoryStoreError::NotFound(_)));
714 }
715
716 #[test]
717 fn test_has_contents() {

Callers

nothing calls this directly

Calls 1

get_changeMethod · 0.45

Tested by

no test coverage detected