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

Method Eval

cel/program.go:45–45  ·  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

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

Callers 15

evalMethod · 0.65
ExecuteTestMethod · 0.65
TestSimpleVariablesFunction · 0.65
TestWhitespaceHanldingFunction · 0.65
runMethod · 0.65
benchMethod · 0.65
evalMethod · 0.65
RunCaseFunction · 0.65
TestNetwork_SuccessFunction · 0.65
TestStringFormatFunction · 0.65

Implementers 1

progcel/program.go

Calls

no outgoing calls

Tested by 15

TestSimpleVariablesFunction · 0.52
TestWhitespaceHanldingFunction · 0.52
runMethod · 0.52
benchMethod · 0.52
evalMethod · 0.52
TestNetwork_SuccessFunction · 0.52
TestStringFormatFunction · 0.52
TestLiteralOutputFunction · 0.52
TestListsFunction · 0.52
TestListsRuntimeErrorsFunction · 0.52