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

Function test_has_change

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

Source from the content-addressed store, hash-verified

335
336#[test]
337fn test_has_change() {
338 let (store, _temp) = create_test_store();
339
340 let change = create_test_change("Test has_change");
341 let hash = store.save_change(&change).expect("Failed to save change");
342
343 // Should exist
344 assert!(store.has_change(&hash));
345
346 // Should not exist
347 let fake_hash = Hash::of(b"nonexistent");
348 assert!(!store.has_change(&fake_hash));
349}
350
351#[test]
352fn 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