MCPcopy Create free account
hub / github.com/AdRoll/baker / isMatchAny

Method isMatchAny

filter/string_match.go:63–72  ·  view source on GitHub ↗
(l baker.Record)

Source from the content-addressed store, hash-verified

61}
62
63func (f *StringMatch) isMatchAny(l baker.Record) bool {
64 buf := l.Get(f.field)
65 for i := range f.strings {
66 if bytes.Equal(buf, f.strings[i]) {
67 return true
68 }
69 }
70
71 return false
72}
73
74// Process is where the actual filtering takes place.
75func (f *StringMatch) Process(l baker.Record, next func(baker.Record)) {

Callers 1

ProcessMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected