(t *testing.T, opts ...cel.EnvOption)
| 476 | } |
| 477 | |
| 478 | func testSetsEnv(t *testing.T, opts ...cel.EnvOption) *cel.Env { |
| 479 | t.Helper() |
| 480 | baseOpts := []cel.EnvOption{cel.EnableMacroCallTracking(), Sets()} |
| 481 | env, err := cel.NewEnv(append(baseOpts, opts...)...) |
| 482 | if err != nil { |
| 483 | t.Fatalf("cel.NewEnv(Sets()) failed: %v", err) |
| 484 | } |
| 485 | return env |
| 486 | } |
| 487 | |
| 488 | func testCheckCost(t *testing.T, env *cel.Env, ast *cel.Ast, hints map[string]uint64, wantEst checker.CostEstimate) { |
| 489 | t.Helper() |
no test coverage detected