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

Function test_stats_empty

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

Source from the content-addressed store, hash-verified

390
391#[test]
392fn test_stats_empty() {
393 let (_dir, store) = temp_store();
394 let stats = store.stats().unwrap();
395
396 assert_eq!(stats.change_count, 0);
397 assert_eq!(stats.graph_section_count, 0);
398 assert_eq!(stats.semantic_section_count, 0);
399 assert_eq!(stats.content_chunk_count, 0);
400 assert_eq!(stats.change_chunk_mappings, 0);
401 assert_eq!(stats.unhashed_count, 0);
402}
403
404#[test]
405fn test_stats_after_save() {

Callers

nothing calls this directly

Calls 3

temp_storeFunction · 0.85
unwrapMethod · 0.45
statsMethod · 0.45

Tested by

no test coverage detected