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

Function children_same_scc_no_fork

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

Source from the content-addressed store, hash-verified

333
334 #[test]
335 fn children_same_scc_no_fork() {
336 let verts = [
337 GraphNode::BOTTOM,
338 make_vertex(1, 0, 10),
339 make_vertex(2, 0, 10),
340 make_vertex(3, 0, 10),
341 ];
342 let graph = build_graph(&verts, 1, &[2, 3]);
343
344 // Both children in the same SCC (cyclic conflict, not a fork)
345 let order = OrderResult {
346 sccs: vec![vec![VertexId(1)], vec![VertexId(2), VertexId(3)]],
347 conflict_tree: Default::default(),
348 cyclic_conflicts: 1,
349 forward_edges: Vec::new(),
350 };
351
352 assert!(detect_fork_conflicts(&graph, &order).unwrap().is_empty());
353 }
354
355 #[test]
356 fn three_way_fork() {

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.85
make_vertexFunction · 0.70

Tested by

no test coverage detected