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

Function validate_order_vertices

atomic-core/src/output/repo/content.rs:98–107  ·  view source on GitHub ↗
(graph: &AliveGraph, order: &OrderResult)

Source from the content-addressed store, hash-verified

96}
97
98fn validate_order_vertices(graph: &AliveGraph, order: &OrderResult) -> Result<(), PristineError> {
99 for scc in &order.sccs {
100 for &vertex_id in scc {
101 graph
102 .try_get_vertex(vertex_id)
103 .ok_or_else(|| missing_vertex("order", vertex_id))?;
104 }
105 }
106 Ok(())
107}
108
109fn lookup_hash<F>(hash_fn: &F, node_id: NodeId) -> OutputResult<Option<Hash>>
110where

Callers 3

output_graph_contentFunction · 0.85

Calls 2

missing_vertexFunction · 0.85
try_get_vertexMethod · 0.80

Tested by

no test coverage detected