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

Function EvalOptions

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

796
797// EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
798func EvalOptions(opts ...EvalOption) ProgramOption {
799 return func(p *prog) (*prog, error) {
800 for _, opt := range opts {
801 p.evalOpts |= opt
802 }
803 return p, nil
804 }
805}
806
807// InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate
808// 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
TestBindingsImmutabilityFunction · 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
TestBindingsImmutabilityFunction · 0.74
BenchmarkBindingsFunction · 0.74
TestBlockEvalFunction · 0.74
BenchmarkBlockEvalFunction · 0.74
TestConcurrentEvalFunction · 0.74