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

Function test_graph_stats_display

atomic-core/src/output/alive/graph.rs:821–835  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

819
820 #[test]
821 fn test_graph_stats_display() {
822 let stats = GraphStats {
823 vertex_count: 10,
824 child_count: 25,
825 total_bytes: 1000,
826 zombie_count: 2,
827 empty_vertex_count: 1,
828 };
829
830 let display = stats.to_string();
831 assert!(display.contains("10 vertices"));
832 assert!(display.contains("25 children"));
833 assert!(display.contains("1000 bytes"));
834 assert!(display.contains("2 zombies"));
835 }
836
837 // -------------------------------------------------------------------------
838 // Clear and Reset Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected