(t *testing.T, name string, opts ...cel.EnvOption)
| 357 | } |
| 358 | |
| 359 | func envOptionToConfig(t *testing.T, name string, opts ...cel.EnvOption) (*env.Config, error) { |
| 360 | t.Helper() |
| 361 | e, err := cel.NewCustomEnv(opts...) |
| 362 | if err != nil { |
| 363 | return nil, err |
| 364 | } |
| 365 | conf, err := e.ToConfig(name) |
| 366 | if err != nil { |
| 367 | return nil, err |
| 368 | } |
| 369 | return conf, nil |
| 370 | } |
| 371 | |
| 372 | func TestFileExpressionCustomPolicyParser(t *testing.T) { |
| 373 | t.Run("test file expression custom policy parser", func(t *testing.T) { |
no test coverage detected