(&self, pos: Position<NodeId>)
| 121 | } |
| 122 | |
| 123 | fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> { |
| 124 | if let Some(fault) = self.find_block_faults.get(&pos) { |
| 125 | return Err(fault.into_error()); |
| 126 | } |
| 127 | self.blocks |
| 128 | .get(&pos) |
| 129 | .copied() |
| 130 | .ok_or(PristineError::BlockNotFound { |
| 131 | change: pos.change.get(), |
| 132 | pos: pos.pos.get(), |
| 133 | }) |
| 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) { |
no test coverage detected