MCPcopy Index your code
hub / github.com/google/mangle / containsFact

Function containsFact

examples/examples_test.go:133–141  ·  view source on GitHub ↗
(facts []factstore.TemporalFact, prefix string)

Source from the content-addressed store, hash-verified

131}
132
133func containsFact(facts []factstore.TemporalFact, prefix string) bool {
134 for _, f := range facts {
135 // Use a simple string check on the Atom
136 if strings.Contains(f.Atom.String(), prefix) {
137 return true
138 }
139 }
140 return false
141}
142
143func verifyInterval(t *testing.T, facts []factstore.TemporalFact, prefix, startStr, endStr string) {
144 found := false

Callers 2

TestTemporalSequenceFunction · 0.85

Calls 2

ContainsMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected