Case represents a human-readable expression and an expected output given an input
| 27 | |
| 28 | // Case represents a human-readable expression and an expected output given an input |
| 29 | type Case struct { |
| 30 | // Expr is a human-readable expression which is expected to compile. |
| 31 | Expr string |
| 32 | |
| 33 | // Options indicate additional pieces of configuration such as CEL libraries, variables, and functions. |
| 34 | Options []cel.EnvOption |
| 35 | |
| 36 | // In is expected to be a map[string]any or cel.Activation instance representing the input to the expression. |
| 37 | In any |
| 38 | |
| 39 | // Out is the expected CEL valued output. |
| 40 | Out ref.Val |
| 41 | } |
| 42 | |
| 43 | // DynamicEnvCase represents an expression compiled in a dynamic environment. |
| 44 | type DynamicEnvCase struct { |
nothing calls this directly
no outgoing calls
no test coverage detected