MCPcopy Create free account
hub / github.com/cel-expr/cel-go / testSetsEnv

Function testSetsEnv

ext/sets_test.go:478–486  ·  view source on GitHub ↗
(t *testing.T, opts ...cel.EnvOption)

Source from the content-addressed store, hash-verified

476}
477
478func 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
488func testCheckCost(t *testing.T, env *cel.Env, ast *cel.Ast, hints map[string]uint64, wantEst checker.CostEstimate) {
489 t.Helper()

Callers 2

TestSetsFunction · 0.85

Calls 3

EnableMacroCallTrackingFunction · 0.92
NewEnvFunction · 0.92
SetsFunction · 0.85

Tested by

no test coverage detected