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

Method count_branches

atomic-core/src/crdt/apply/branch.rs:602–604  ·  view source on GitHub ↗
(&self, trunk_id: TrunkId)

Source from the content-addressed store, hash-verified

600 }
601
602 fn count_branches(&self, trunk_id: TrunkId) -> Result<usize, Self::Error> {
603 Ok(self.trunk_branches.get(&trunk_id).map_or(0, |v| v.len()))
604 }
605
606 // Leaf methods
607 fn put_leaf(&mut self, leaf: &Leaf, _after: Option<LeafId>) -> Result<bool, Self::Error> {

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
lenMethod · 0.45

Tested by

no test coverage detected