programOptions generates the program options for planning. Assumes context has been planned.
()
| 519 | // programOptions generates the program options for planning. |
| 520 | // Assumes context has been planned. |
| 521 | func (ctx *EvaluationContext) programOptions() []cel.ProgramOption { |
| 522 | result := []cel.ProgramOption{} |
| 523 | if ctx.enablePartialEval { |
| 524 | result = append(result, cel.EvalOptions(cel.OptPartialEval)) |
| 525 | } |
| 526 | return result |
| 527 | } |
| 528 | |
| 529 | // Evaluator provides basic environment for evaluating an expression with |
| 530 | // applied context. |
no test coverage detected