()
| 219 | |
| 220 | #[test] |
| 221 | fn no_fork_single_child() { |
| 222 | let verts = [ |
| 223 | GraphNode::BOTTOM, |
| 224 | make_vertex(1, 0, 10), |
| 225 | make_vertex(2, 0, 10), |
| 226 | ]; |
| 227 | let graph = build_graph(&verts, 1, &[2]); |
| 228 | |
| 229 | let order = OrderResult { |
| 230 | sccs: vec![vec![VertexId(1)], vec![VertexId(2)]], |
| 231 | conflict_tree: Default::default(), |
| 232 | cyclic_conflicts: 0, |
| 233 | forward_edges: Vec::new(), |
| 234 | }; |
| 235 | |
| 236 | assert!(detect_fork_conflicts(&graph, &order).is_empty()); |
| 237 | } |
| 238 | |
| 239 | #[test] |
| 240 | fn fork_two_children_different_sccs() { |
nothing calls this directly
no test coverage detected