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

Method Eval

cel/program.go:50–50  ·  view source on GitHub ↗

Eval returns the result of an evaluation of the Ast and environment against the input vars. The vars value may either be an `Activation` or a `map[string]any`. If the `OptTrackState`, `OptTrackCost` or `OptExhaustiveEval` flags are used, the `details` response will be non-nil. Given this caveat on

(any)

Source from the content-addressed store, hash-verified

48 // or `ProgramOption` values used in the creation of the evaluation environment or executable
49 // program.
50 Eval(any) (ref.Val, *EvalDetails, error)
51
52 // ContextEval evaluates the program with a set of input variables and a context object in order
53 // to support cancellation and timeouts. This method must be used in conjunction with the

Callers 15

TestNilProgramFunction · 0.95
evalMethod · 0.65
ExecuteTestMethod · 0.65
TestSimpleVariablesFunction · 0.65
TestComposeFunction · 0.65
TestWhitespaceHanldingFunction · 0.65
runMethod · 0.65
benchMethod · 0.65
evalMethod · 0.65
RunCaseFunction · 0.65
TestNetwork_SuccessFunction · 0.65

Implementers 1

progcel/program.go

Calls

no outgoing calls

Tested by 15

TestNilProgramFunction · 0.76
TestSimpleVariablesFunction · 0.52
TestComposeFunction · 0.52
TestWhitespaceHanldingFunction · 0.52
runMethod · 0.52
benchMethod · 0.52
evalMethod · 0.52
TestNetwork_SuccessFunction · 0.52
testCostFunction · 0.52
TestStringFormatFunction · 0.52