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:285–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284 #[test]
285 fn children_same_scc_no_fork() {
286 let verts = [
287 GraphNode::BOTTOM,
288 make_vertex(1, 0, 10),
289 make_vertex(2, 0, 10),
290 make_vertex(3, 0, 10),
291 ];
292 let graph = build_graph(&verts, 1, &[2, 3]);
293
294 // Both children in the same SCC (cyclic conflict, not a fork)
295 let order = OrderResult {
296 sccs: vec![vec![VertexId(1)], vec![VertexId(2), VertexId(3)]],
297 conflict_tree: Default::default(),
298 cyclic_conflicts: 1,
299 forward_edges: Vec::new(),
300 };
301
302 assert!(detect_fork_conflicts(&graph, &order).is_empty());
303 }
304
305 #[test]
306 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