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

Function test_has_change

atomic-repository/src/changestore/tests.rs:271–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269
270#[test]
271fn test_has_change() {
272 let (store, _temp) = create_test_store();
273
274 let change = create_test_change("Test has_change");
275 let hash = store.save_change(&change).expect("Failed to save change");
276
277 // Should exist
278 assert!(store.has_change(&hash));
279
280 // Should not exist
281 let fake_hash = Hash::of(b"nonexistent");
282 assert!(!store.has_change(&fake_hash));
283}
284
285#[test]
286fn test_has_change_from_cache() {

Callers

nothing calls this directly

Calls 3

create_test_storeFunction · 0.70
create_test_changeFunction · 0.70
save_changeMethod · 0.45

Tested by

no test coverage detected