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

Method find_block

atomic-core/src/output/repo/repository/tests.rs:665–676  ·  view source on GitHub ↗
(
            &self,
            position: Position<NodeId>,
        )

Source from the content-addressed store, hash-verified

663 }
664
665 fn find_block(
666 &self,
667 position: Position<NodeId>,
668 ) -> Result<GraphNode<NodeId>, PristineError> {
669 self.blocks
670 .get(&position)
671 .copied()
672 .ok_or(PristineError::BlockNotFound {
673 change: position.change.get(),
674 pos: position.pos.get(),
675 })
676 }
677
678 fn find_block_end(
679 &self,

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected