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

Method is_empty

atomic-core/src/merge/resolved.rs:77–79  ·  view source on GitHub ↗

Returns `true` if no resolution state is present at all. We must consult **every** field — `merged`, `skip` and `unresolved_forks` — because the resolved-output writer takes a fast path through `output_graph_content` when this returns `true`, and that fast path honours none of them. A resolution that's only a skip set (e.g. a fork settled by change-DAG supersession where the winner is emitted as

(&self)

Source from the content-addressed store, hash-verified

75 /// are dropped) must NOT trip the fast path or the loser bytes
76 /// would still be written.
77 pub fn is_empty(&self) -> bool {
78 self.merged.is_empty() && self.skip.is_empty() && self.unresolved_forks.is_empty()
79 }
80
81 /// Record merged content for the lead vertex of a resolved SCC.
82 pub fn insert_merged(&mut self, vid: VertexId, content: Vec<u8>) {

Callers 2

try_mergeMethod · 0.45
is_token_subsequenceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected