MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Exec

Method Exec

interpreter/interpretable.go:439–449  ·  view source on GitHub ↗

Exec implements the InterpretableV2 interface method.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

437
438// Exec implements the InterpretableV2 interface method.
439func (eq *evalEq) Exec(frame *ExecutionFrame) ref.Val {
440 lVal := eq.lhs.Exec(frame)
441 rVal := eq.rhs.Exec(frame)
442 if types.IsUnknownOrError(lVal) {
443 return lVal
444 }
445 if types.IsUnknownOrError(rVal) {
446 return rVal
447 }
448 return types.Equal(lVal, rVal)
449}
450
451// Eval implements the Interpretable interface method.
452func (eq *evalEq) Eval(ctx Activation) ref.Val {

Callers 1

EvalMethod · 0.95

Calls 3

IsUnknownOrErrorFunction · 0.92
EqualFunction · 0.92
ExecMethod · 0.65

Tested by

no test coverage detected