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

Function test_sync_stats_display_incremental

atomic-remote/src/sync.rs:1093–1104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1091
1092 #[test]
1093 fn test_sync_stats_display_incremental() {
1094 let stats = SyncStats {
1095 dichotomy_comparisons: 5,
1096 divergence_point: 42,
1097 changelist_entries_fetched: 10,
1098 from_scratch: false,
1099 };
1100 let display = format!("{}", stats);
1101 assert!(display.contains("5 comparisons"));
1102 assert!(display.contains("divergence at 42"));
1103 assert!(display.contains("10 entries"));
1104 }
1105
1106 // Node helper tests (verifying Hash/Eq for HashSet usage)
1107

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected