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

Struct Case

test/suite.go:35–41  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

33// encompasses evaluation of the compiled expression using the provided input
34// bindings and asserting the result against the expected result.
35type 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.
44type InputContext struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected