(t testing.TB, env *cel.Env, expr string)
| 481 | } |
| 482 | |
| 483 | func mustCompileExpr(t testing.TB, env *cel.Env, expr string) *cel.Ast { |
| 484 | t.Helper() |
| 485 | out, iss := env.Compile(expr) |
| 486 | if iss.Err() != nil { |
| 487 | t.Fatalf("env.Compile(%s) failed: %v", expr, iss.Err()) |
| 488 | } |
| 489 | return out |
| 490 | } |
| 491 | |
| 492 | func parsePolicy(t testing.TB, name string, parseOpts []ParserOption) *Policy { |
| 493 | t.Helper() |
no test coverage detected