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

Function EvalOptions

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

718
719// EvalOptions sets one or more evaluation options which may affect the evaluation or Result.
720func EvalOptions(opts ...EvalOption) ProgramOption {
721 return func(p *prog) (*prog, error) {
722 for _, opt := range opts {
723 p.evalOpts |= opt
724 }
725 return p, nil
726 }
727}
728
729// InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate
730// 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
exercise8Function · 0.92
runTestSuiteFunction · 0.92
programOptionsMethod · 0.92
TestEvalFunction · 0.85

Calls

no outgoing calls

Tested by 15

setupMethod · 0.74
BenchmarkBindingsFunction · 0.74
TestBlockEvalFunction · 0.74
BenchmarkBlockEvalFunction · 0.74
runTestSuiteFunction · 0.74
TestEvalFunction · 0.68
TestDynamicProtoFunction · 0.68
TestCustomMacroFunction · 0.68
TestMacroInteropFunction · 0.68
TestMacroModernFunction · 0.68