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

Method Eval

runtime/sam/expr/eval.go:188–204  ·  view source on GitHub ↗
(this super.Value)

Source from the content-addressed store, hash-verified

186}
187
188func (e *Equal) Eval(this super.Value) super.Value {
189 lhsVal, rhsVal, errVal := e.numeric.eval(this)
190 if errVal != nil {
191 return *errVal
192 }
193 if lhsVal.IsNull() || rhsVal.IsNull() {
194 return super.Null
195 }
196 result := coerce.Equal(lhsVal, rhsVal)
197 if !e.equality {
198 result = !result
199 }
200 if result {
201 return super.True
202 }
203 return super.False
204}
205
206type RegexpMatch struct {
207 re *regexp.Regexp

Callers

nothing calls this directly

Calls 3

EqualFunction · 0.92
IsNullMethod · 0.80
evalMethod · 0.45

Tested by

no test coverage detected