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

Method has_branch

atomic-core/src/crdt/apply/branch.rs:568–570  ·  view source on GitHub ↗
(&self, id: BranchId)

Source from the content-addressed store, hash-verified

566 }
567
568 fn has_branch(&self, id: BranchId) -> Result<bool, Self::Error> {
569 Ok(self.branches.contains_key(&id))
570 }
571
572 fn del_branch(&mut self, id: BranchId) -> Result<bool, Self::Error> {
573 if let Some(branch) = self.branches.remove(&id) {

Callers 2

apply_insert_onlyFunction · 0.45
apply_reparentFunction · 0.45

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected