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

Method Process

filter/regex_match.go:93–100  ·  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

91
92// Process is where the actual filtering takes place.
93func (f *RegexMatch) Process(l baker.Record, next func(baker.Record)) {
94 if f.match(l) == f.invert {
95 atomic.AddInt64(&f.discarded, 1)
96 return
97 }
98
99 next(l)
100}

Callers 1

TestRegexMatchFunction · 0.95

Calls 1

matchMethod · 0.95

Tested by 1

TestRegexMatchFunction · 0.76