()
| 333 | |
| 334 | #[test] |
| 335 | fn children_same_scc_no_fork() { |
| 336 | let verts = [ |
| 337 | GraphNode::BOTTOM, |
| 338 | make_vertex(1, 0, 10), |
| 339 | make_vertex(2, 0, 10), |
| 340 | make_vertex(3, 0, 10), |
| 341 | ]; |
| 342 | let graph = build_graph(&verts, 1, &[2, 3]); |
| 343 | |
| 344 | // Both children in the same SCC (cyclic conflict, not a fork) |
| 345 | let order = OrderResult { |
| 346 | sccs: vec![vec![VertexId(1)], vec![VertexId(2), VertexId(3)]], |
| 347 | conflict_tree: Default::default(), |
| 348 | cyclic_conflicts: 1, |
| 349 | forward_edges: Vec::new(), |
| 350 | }; |
| 351 | |
| 352 | assert!(detect_fork_conflicts(&graph, &order).unwrap().is_empty()); |
| 353 | } |
| 354 | |
| 355 | #[test] |
| 356 | fn three_way_fork() { |
nothing calls this directly
no test coverage detected