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

Function test_store_count

atomic-agent/src/turn/session.rs:2231–2241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2229
2230 #[test]
2231 fn test_store_count() {
2232 let (_dir, store) = make_store();
2233
2234 assert_eq!(store.count().unwrap(), 0);
2235
2236 store.save(&make_session()).unwrap();
2237 assert_eq!(store.count().unwrap(), 1);
2238
2239 store.save(&AgentSession::new("sess-2", "a", "A")).unwrap();
2240 assert_eq!(store.count().unwrap(), 2);
2241 }
2242
2243 // SessionStore: for_repo
2244

Callers

nothing calls this directly

Calls 4

make_storeFunction · 0.85
make_sessionFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected