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

Method get_path

atomic-core/src/output/repo/repository/tests.rs:720–725  ·  view source on GitHub ↗
(&self, inode: Inode)

Source from the content-addressed store, hash-verified

718 }
719
720 fn get_path(&self, inode: Inode) -> Result<Option<String>, PristineError> {
721 Ok(self
722 .tree
723 .iter()
724 .find_map(|(path, candidate)| (*candidate == inode).then(|| path.clone())))
725 }
726
727 fn inode_position(&self, inode: Inode) -> Result<Option<Position<NodeId>>, PristineError> {
728 Ok(self.positions.get(&inode).copied())

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected