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

Method Exec

interpreter/interpretable.go:483–493  ·  view source on GitHub ↗

Exec implements the InterpretableV2 interface method.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

481
482// Exec implements the InterpretableV2 interface method.
483func (ne *evalNe) Exec(frame *ExecutionFrame) ref.Val {
484 lVal := ne.lhs.Exec(frame)
485 rVal := ne.rhs.Exec(frame)
486 if types.IsUnknownOrError(lVal) {
487 return lVal
488 }
489 if types.IsUnknownOrError(rVal) {
490 return rVal
491 }
492 return types.Bool(types.Equal(lVal, rVal) != types.True)
493}
494
495// Eval implements the Interpretable interface method.
496func (ne *evalNe) Eval(ctx Activation) ref.Val {

Callers 1

EvalMethod · 0.95

Calls 4

IsUnknownOrErrorFunction · 0.92
BoolTypeAlias · 0.92
EqualFunction · 0.92
ExecMethod · 0.65

Tested by

no test coverage detected