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

Function locationCodeEnvOption

tools/celtest/test_runner_test.go:83–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func locationCodeEnvOption() cel.EnvOption {
84 return cel.Function("locationCode",
85 cel.Overload("locationCode_string", []*cel.Type{cel.StringType}, cel.StringType,
86 cel.UnaryBinding(locationCode)))
87}
88
89func locationCode(ip ref.Val) ref.Val {
90 switch ip.(types.String) {

Callers 2

TestCoverageStatsFunction · 0.70
setupTestsFunction · 0.70

Calls 3

FunctionFunction · 0.92
OverloadFunction · 0.92
UnaryBindingFunction · 0.92

Tested by

no test coverage detected