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

Method has_contents

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

Source from the content-addressed store, hash-verified

429 }
430
431 fn has_contents(&self, hash: &Hash) -> bool {
432 self.changes
433 .read()
434 .unwrap()
435 .get(hash)
436 .map(|c| !c.contents.is_empty())
437 .unwrap_or(false)
438 }
439
440 fn get_contents<F>(
441 &self,

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
unwrapMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected