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

Function test_stats_display

atomic-repository/src/record/tests.rs:271–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269
270#[test]
271fn test_stats_display() {
272 let mut stats = RecordStats::new();
273 stats.files_processed = 10;
274 stats.files_recorded = 5;
275 stats.files_skipped = 5;
276 stats.hunks_created = 15;
277 stats.vertices_added = 100;
278 stats.edges_modified = 50;
279 stats.content_bytes = 2048;
280 stats.dependency_count = 2;
281 stats.errors = 0;
282
283 let display = format!("{}", stats);
284 assert!(display.contains("5 file(s)"));
285 assert!(display.contains("15 graph_op(s)"));
286 assert!(display.contains("+100 vertices"));
287 assert!(display.contains("~50 edges"));
288 assert!(display.contains("2048 bytes"));
289}
290
291#[test]
292fn test_stats_crdt_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected