()
| 269 | |
| 270 | #[test] |
| 271 | fn no_fork_single_child() { |
| 272 | let verts = [ |
| 273 | GraphNode::BOTTOM, |
| 274 | make_vertex(1, 0, 10), |
| 275 | make_vertex(2, 0, 10), |
| 276 | ]; |
| 277 | let graph = build_graph(&verts, 1, &[2]); |
| 278 | |
| 279 | let order = OrderResult { |
| 280 | sccs: vec![vec![VertexId(1)], vec![VertexId(2)]], |
| 281 | conflict_tree: Default::default(), |
| 282 | cyclic_conflicts: 0, |
| 283 | forward_edges: Vec::new(), |
| 284 | }; |
| 285 | |
| 286 | assert!(detect_fork_conflicts(&graph, &order).unwrap().is_empty()); |
| 287 | } |
| 288 | |
| 289 | #[test] |
| 290 | fn fork_two_children_different_sccs() { |
nothing calls this directly
no test coverage detected