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

Function test_stats_empty

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

Source from the content-addressed store, hash-verified

924
925#[test]
926fn test_stats_empty() {
927 let (_dir, store) = temp_store();
928 let stats = store.stats().unwrap();
929
930 assert_eq!(stats.change_count, 0);
931 assert_eq!(stats.graph_section_count, 0);
932 assert_eq!(stats.semantic_section_count, 0);
933 assert_eq!(stats.content_chunk_count, 0);
934 assert_eq!(stats.change_chunk_mappings, 0);
935 assert_eq!(stats.unhashed_count, 0);
936}
937
938#[test]
939fn 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