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

Method has_contents

atomic-core/src/change/store.rs:455–462  ·  view source on GitHub ↗
(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

453 }
454
455 fn has_contents(&self, hash: &Hash) -> bool {
456 self.changes
457 .read()
458 .unwrap()
459 .get(hash)
460 .map(|c| !c.contents.is_empty())
461 .unwrap_or(false)
462 }
463
464 fn get_contents<F>(
465 &self,

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
unwrapMethod · 0.45
readMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected