()
| 313 | |
| 314 | #[test] |
| 315 | fn skips_empty_inode_children() { |
| 316 | let verts = [ |
| 317 | GraphNode::BOTTOM, |
| 318 | make_vertex(1, 0, 10), // parent |
| 319 | make_vertex(2, 5, 5), // empty (inode) |
| 320 | make_vertex(3, 0, 10), // content |
| 321 | ]; |
| 322 | let graph = build_graph(&verts, 1, &[2, 3]); |
| 323 | |
| 324 | let order = OrderResult { |
| 325 | sccs: vec![vec![VertexId(1)], vec![VertexId(2)], vec![VertexId(3)]], |
| 326 | conflict_tree: Default::default(), |
| 327 | cyclic_conflicts: 0, |
| 328 | forward_edges: Vec::new(), |
| 329 | }; |
| 330 | |
| 331 | assert!(detect_fork_conflicts(&graph, &order).unwrap().is_empty()); |
| 332 | } |
| 333 | |
| 334 | #[test] |
| 335 | fn children_same_scc_no_fork() { |
nothing calls this directly
no test coverage detected