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

Method count_leaves

atomic-core/tests/crdt_integration_test.rs:249–255  ·  view source on GitHub ↗
(&self, branch_id: BranchId)

Source from the content-addressed store, hash-verified

247 }
248
249 fn count_leaves(&self, branch_id: BranchId) -> Result<usize, Self::Error> {
250 Ok(self
251 .branch_leaves
252 .get(&branch_id)
253 .map(|v| v.len())
254 .unwrap_or(0))
255 }
256
257 fn alloc_inode(&mut self) -> Result<Inode, Self::Error> {
258 let inode = Inode::new(self.next_inode);

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
lenMethod · 0.45

Tested by

no test coverage detected