(&self, pos: Position<NodeId>)
| 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)) |
no test coverage detected