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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.85
make_vertexFunction · 0.70

Tested by

no test coverage detected