()
| 81 | } |
| 82 | |
| 83 | func 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 | |
| 89 | func locationCode(ip ref.Val) ref.Val { |
| 90 | switch ip.(types.String) { |
no test coverage detected