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

Method find_block_end

atomic-core/src/output/alive/retrieve/tests.rs:136–147  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

134 }
135
136 fn find_block_end(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
137 if let Some(fault) = self.find_block_end_faults.get(&pos) {
138 return Err(fault.into_error());
139 }
140 self.block_ends
141 .get(&pos)
142 .copied()
143 .ok_or(PristineError::BlockNotFound {
144 change: pos.change.get(),
145 pos: pos.pos.get(),
146 })
147 }
148
149 fn has_vertex(&self, node: GraphNode<NodeId>) -> Result<bool, PristineError> {
150 Ok(self.edges.contains_key(&node))

Callers 2

replacement_rootsFunction · 0.45
walk_through_deadFunction · 0.45

Calls 2

into_errorMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected