MCPcopy Create free account
hub / github.com/brimdata/super / filter

Function filter

runtime/sam/expr/filter_test.go:37–46  ·  view source on GitHub ↗
(this super.Value, e expr.Evaluator)

Source from the content-addressed store, hash-verified

35}
36
37func filter(this super.Value, e expr.Evaluator) bool {
38 if e == nil {
39 return true
40 }
41 val := e.Eval(this)
42 if val.Type() == super.TypeBool && val.Bool() {
43 return true
44 }
45 return false
46}
47
48func runCasesHelper(t *testing.T, record string, cases []testcase, expectBufferFilterFalsePositives bool) {
49 t.Helper()

Callers 1

runCasesHelperFunction · 0.70

Calls 3

BoolMethod · 0.80
EvalMethod · 0.65
TypeMethod · 0.65

Tested by

no test coverage detected