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

Function skips_empty_inode_children

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.85
make_vertexFunction · 0.70

Tested by

no test coverage detected