MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / verify

Method verify

document/graph-storage/src/history.rs:164–179  ·  view source on GitHub ↗

Verify the two stored invariants for history loaded from an untrusted source: every delta's content-addressed `id` matches its recomputed hash, and the deltas are in topological order (each delta's in-history parents precede it). Returns the first violation found.

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

verify_historyMethod · 0.80

Calls 5

recomputed_idMethod · 0.80
all_parentsMethod · 0.80
lenMethod · 0.45
containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected