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

Source from the content-addressed store, hash-verified

729
730 #[test]
731 fn test_get_change_not_found() {
732 let store = MemoryChangeStore::new();
733 let hash = Hash::of(b"nonexistent");
734
735 let result = store.get_change(&hash);
736 assert!(result.is_err());
737 assert!(matches!(result.unwrap_err(), MemoryStoreError::NotFound(_)));
738 }
739
740 #[test]
741 fn test_has_contents() {

Callers

nothing calls this directly

Calls 1

get_changeMethod · 0.45

Tested by

no test coverage detected