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

Function test_count_changes

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

Source from the content-addressed store, hash-verified

387
388#[test]
389fn test_count_changes() {
390 let (store, _temp) = create_test_store();
391
392 // Initially empty
393 assert_eq!(store.count_changes().unwrap(), 0);
394
395 // Add some changes
396 for i in 0..3 {
397 let change = create_test_change(&format!("Change {}", i));
398 store.save_change(&change).expect("Failed to save change");
399 }
400
401 assert_eq!(store.count_changes().unwrap(), 3);
402}
403
404// Cache Behavior Tests
405

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