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

Function EvalOptions

cel/options.go:732–739  ·  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

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

Callers 15

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

Calls

no outgoing calls

Tested by 15

setupMethod · 0.74
BenchmarkBindingsFunction · 0.74
TestBlockEvalFunction · 0.74
BenchmarkBlockEvalFunction · 0.74
TestConcurrentEvalFunction · 0.74
runTestSuiteFunction · 0.74
TestEvalFunction · 0.68
TestDynamicProtoFunction · 0.68