(t testing.TB, env *cel.Env, expr string)
| 473 | } |
| 474 | |
| 475 | func mustCompileExpr(t testing.TB, env *cel.Env, expr string) *cel.Ast { |
| 476 | t.Helper() |
| 477 | out, iss := env.Compile(expr) |
| 478 | if iss.Err() != nil { |
| 479 | t.Fatalf("env.Compile(%s) failed: %v", expr, iss.Err()) |
| 480 | } |
| 481 | return out |
| 482 | } |
| 483 | |
| 484 | func parsePolicy(t testing.TB, name string, parseOpts []ParserOption) *Policy { |
| 485 | t.Helper() |
no test coverage detected