Case is a test case to validate a CEL policy or expression. The test case encompasses evaluation of the compiled expression using the provided input bindings and asserting the result against the expected result.
| 33 | // encompasses evaluation of the compiled expression using the provided input |
| 34 | // bindings and asserting the result against the expected result. |
| 35 | type Case struct { |
| 36 | Name string `yaml:"name"` |
| 37 | Description string `yaml:"description"` |
| 38 | Input map[string]*InputValue `yaml:"input,omitempty"` |
| 39 | *InputContext `yaml:",inline,omitempty"` |
| 40 | Output *Output `yaml:"output"` |
| 41 | } |
| 42 | |
| 43 | // InputContext represents an optional context expression. |
| 44 | type InputContext struct { |
nothing calls this directly
no outgoing calls
no test coverage detected