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

Function test_count_changes

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

Source from the content-addressed store, hash-verified

453
454#[test]
455fn test_count_changes() {
456 let (store, _temp) = create_test_store();
457
458 // Initially empty
459 assert_eq!(store.count_changes().unwrap(), 0);
460
461 // Add some changes
462 for i in 0..3 {
463 let change = create_test_change(&format!("Change {}", i));
464 store.save_change(&change).expect("Failed to save change");
465 }
466
467 assert_eq!(store.count_changes().unwrap(), 3);
468}
469
470// Cache Behavior Tests
471

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