(t *testing.T, opts ...cel.EnvOption)
| 262 | } |
| 263 | |
| 264 | func testRegexEnv(t *testing.T, opts ...cel.EnvOption) *cel.Env { |
| 265 | t.Helper() |
| 266 | baseOpts := []cel.EnvOption{ |
| 267 | cel.OptionalTypes(), |
| 268 | Regex(), |
| 269 | } |
| 270 | env, err := cel.NewEnv(append(baseOpts, opts...)...) |
| 271 | if err != nil { |
| 272 | t.Fatalf("cel.NewEnv(Regex()) failed: %v", err) |
| 273 | } |
| 274 | return env |
| 275 | } |
| 276 | |
| 277 | func TestRegexCosts(t *testing.T) { |
| 278 | tests := []struct { |
no test coverage detected