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

Struct Case

test/bench/bench.go:29–41  ·  view source on GitHub ↗

Case represents a human-readable expression and an expected output given an input

Source from the content-addressed store, hash-verified

27
28// Case represents a human-readable expression and an expected output given an input
29type 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.
44type DynamicEnvCase struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected