()
| 283 | |
| 284 | #[test] |
| 285 | fn children_same_scc_no_fork() { |
| 286 | let verts = [ |
| 287 | GraphNode::BOTTOM, |
| 288 | make_vertex(1, 0, 10), |
| 289 | make_vertex(2, 0, 10), |
| 290 | make_vertex(3, 0, 10), |
| 291 | ]; |
| 292 | let graph = build_graph(&verts, 1, &[2, 3]); |
| 293 | |
| 294 | // Both children in the same SCC (cyclic conflict, not a fork) |
| 295 | let order = OrderResult { |
| 296 | sccs: vec![vec![VertexId(1)], vec![VertexId(2), VertexId(3)]], |
| 297 | conflict_tree: Default::default(), |
| 298 | cyclic_conflicts: 1, |
| 299 | forward_edges: Vec::new(), |
| 300 | }; |
| 301 | |
| 302 | assert!(detect_fork_conflicts(&graph, &order).is_empty()); |
| 303 | } |
| 304 | |
| 305 | #[test] |
| 306 | fn three_way_fork() { |
nothing calls this directly
no test coverage detected