MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / no_fork_single_child

Function no_fork_single_child

atomic-core/src/output/repo/fork.rs:221–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.85
make_vertexFunction · 0.70

Tested by

no test coverage detected