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

Method Process

filter/string_match.go:75–82  ·  view source on GitHub ↗

Process is where the actual filtering takes place.

(l baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

73
74// Process is where the actual filtering takes place.
75func (f *StringMatch) Process(l baker.Record, next func(baker.Record)) {
76 if f.isMatchAny(l) == !f.invert {
77 atomic.AddInt64(&f.discarded, 1)
78 return
79 }
80
81 next(l)
82}

Callers 1

TestStringMatchFunction · 0.95

Calls 1

isMatchAnyMethod · 0.95

Tested by 1

TestStringMatchFunction · 0.76