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

Method Contains

factstore/simplecolumn.go:96–103  ·  view source on GitHub ↗

Contains implements a ReadOnlyFactStore method.

(fact ast.Atom)

Source from the content-addressed store, hash-verified

94
95// Contains implements a ReadOnlyFactStore method.
96func (s *SimpleColumnStore) Contains(fact ast.Atom) bool {
97 var found bool
98 s.GetFacts(fact, func(a ast.Atom) error {
99 found = true
100 return nil
101 })
102 return found
103}
104
105// EstimateFactCount implements a ReadOnlyFactStore method.
106func (s *SimpleColumnStore) EstimateFactCount() int {

Callers 1

TestFilteredFunction · 0.95

Calls 1

GetFactsMethod · 0.95

Tested by 1

TestFilteredFunction · 0.76