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

Function EvalOptions

cel/options.go:735–742  ·  view source on GitHub ↗

EvalOptions sets one or more evaluation options which may affect the evaluation or Result.

(opts ...EvalOption)

Source from the content-addressed store, hash-verified

733
734// EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
735func EvalOptions(opts ...EvalOption) ProgramOption {
736 return func(p *prog) (*prog, error) {
737 for _, opt := range opts {
738 p.evalOpts |= opt
739 }
740 return p, nil
741 }
742}
743
744// InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate
745// before checking whether the function evaluation has been interrupted.

Callers 15

PartialEvalProgramOptionFunction · 0.92
EnableCoverageFunction · 0.92
setupMethod · 0.92
RunCaseFunction · 0.92
BenchmarkNativeTypesEvalFunction · 0.92
BenchmarkBindingsFunction · 0.92
TestBlockEvalFunction · 0.92
BenchmarkBlockEvalFunction · 0.92
TestConcurrentEvalFunction · 0.92

Calls

no outgoing calls

Tested by 15

setupMethod · 0.74
BenchmarkNativeTypesEvalFunction · 0.74
BenchmarkBindingsFunction · 0.74
TestBlockEvalFunction · 0.74
BenchmarkBlockEvalFunction · 0.74
TestConcurrentEvalFunction · 0.74
BenchmarkNativeTypesEvalFunction · 0.74
runTestSuiteFunction · 0.74