(t *testing.T)
| 227 | } |
| 228 | |
| 229 | func TestProtosWithExtension(t *testing.T) { |
| 230 | env := testProtosEnv(t) |
| 231 | _, err := env.Extend(Protos()) |
| 232 | if err != nil { |
| 233 | t.Fatalf("env.Extend(Protos()) failed: %v", err) |
| 234 | } |
| 235 | _, iss := env.Compile("proto.getExt(ExampleType{}, google.expr.proto2.test.int32_ext) == 0") |
| 236 | if iss.Err() != nil { |
| 237 | t.Errorf("env.Compile() failed: %v", iss.Err()) |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | func TestProtosVersion(t *testing.T) { |
| 242 | _, err := cel.NewEnv(Protos(ProtosVersion(0))) |
nothing calls this directly
no test coverage detected