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

Function inode_of

atomic-repository/src/repository/tests/attribute_tests.rs:427–431  ·  view source on GitHub ↗
(repo: &TestRepository, path: &str)

Source from the content-addressed store, hash-verified

425
426#[cfg(unix)]
427fn inode_of(repo: &TestRepository, path: &str) -> atomic_core::types::Inode {
428 use atomic_core::pristine::TreeTxnT;
429 let txn = repo.pristine.read_txn().unwrap();
430 txn.get_inode(path).unwrap().unwrap()
431}
432
433#[cfg(unix)]
434fn position_of(

Calls 3

read_txnMethod · 0.80
unwrapMethod · 0.45
get_inodeMethod · 0.45

Tested by

no test coverage detected