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

Method get_internal

atomic-core/src/output/repo/repository/tests.rs:633–638  ·  view source on GitHub ↗
(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

631 }
632
633 fn get_internal(&self, hash: &Hash) -> Result<Option<NodeId>, PristineError> {
634 Ok(self
635 .external
636 .iter()
637 .find_map(|(id, candidate)| (candidate == hash).then_some(*id)))
638 }
639
640 fn iter_adjacent(
641 &self,

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected