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

Function newTestRegistry

checker/env_test.go:107–114  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

105}
106
107func newTestRegistry(t testing.TB) *types.Registry {
108 t.Helper()
109 reg, err := types.NewRegistry()
110 if err != nil {
111 t.Fatalf("types.NewRegistry() failed: %v", err)
112 }
113 return reg
114}

Callers 8

TestCheckErrorDataFunction · 0.70
TestCheckInvalidLiteralFunction · 0.70
TestCopyDeclarationsFunction · 0.70
BenchmarkNewStdEnvFunction · 0.70
newStdEnvFunction · 0.70

Calls 1

NewRegistryFunction · 0.92

Tested by

no test coverage detected