MCPcopy
hub / github.com/google/mangle / Add

Method Add

factstore/factstore.go:219–224  ·  view source on GitHub ↗

Add implementation that adds to the write store.

(atom ast.Atom)

Source from the content-addressed store, hash-verified

217
218// Add implementation that adds to the write store.
219func (s MergedStore) Add(atom ast.Atom) bool {
220 if s.Contains(atom) {
221 return false
222 }
223 return s.writeStore.Add(atom)
224}
225
226// Remove implementation that removes from the write store.
227func (s MergedStore) Remove(atom ast.Atom) bool {

Callers 1

TestMergedAddContainsFunction · 0.95

Calls 2

ContainsMethod · 0.95
AddMethod · 0.65

Tested by 1

TestMergedAddContainsFunction · 0.76