(t *testing.T, opts ...cel.EnvOption)
| 660 | } |
| 661 | |
| 662 | func testMathEnv(t *testing.T, opts ...cel.EnvOption) *cel.Env { |
| 663 | t.Helper() |
| 664 | baseOpts := []cel.EnvOption{Math(), cel.EnableMacroCallTracking()} |
| 665 | env, err := cel.NewEnv(append(baseOpts, opts...)...) |
| 666 | if err != nil { |
| 667 | t.Fatalf("cel.NewEnv(Math()) failed: %v", err) |
| 668 | } |
| 669 | return env |
| 670 | } |
| 671 | |
| 672 | func testMathCostsEnv(t *testing.T, version int, opts ...cel.EnvOption) *cel.Env { |
| 673 | t.Helper() |
no test coverage detected