()
| 297 | |
| 298 | #[test] |
| 299 | fn parallel_map_preserves_order() { |
| 300 | let snap = make_snapshot(); |
| 301 | let config = ParallelConfig { |
| 302 | num_threads: 4, |
| 303 | min_partition_size: 10, |
| 304 | }; |
| 305 | |
| 306 | // Map node_id → node_id to verify ordering. |
| 307 | let ids: Vec<u32> = parallel_map(&snap, &config, |node, _| node); |
| 308 | |
| 309 | for (i, &id) in ids.iter().enumerate() { |
| 310 | assert_eq!(id, i as u32, "order mismatch at index {i}"); |
| 311 | } |
| 312 | } |
| 313 | } |
nothing calls this directly
no test coverage detected