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