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

Function testEnv

cel/cel_test.go:3982–3989  ·  view source on GitHub ↗
(t testing.TB, opts ...EnvOption)

Source from the content-addressed store, hash-verified

3980}
3981
3982func testEnv(t testing.TB, opts ...EnvOption) *Env {
3983 t.Helper()
3984 e, err := NewEnv(opts...)
3985 if err != nil {
3986 t.Fatalf("NewEnv() failed: %v", err)
3987 }
3988 return e
3989}
3990
3991func compile(t testing.TB, env *Env, expr string) Program {
3992 t.Helper()

Callers 15

TestEnvPartialVarsErrorFunction · 0.70
TestAbbrevsCompiledFunction · 0.70
TestAbbrevsParsedFunction · 0.70
TestExtendStdlibFunctionFunction · 0.70
TestCustomTypesFunction · 0.70
TestTypeIsolationFunction · 0.70
TestDynamicProtoFunction · 0.70
TestGlobalVarsFunction · 0.70
TestMacroSubsetFunction · 0.70

Calls 1

NewEnvFunction · 0.70

Tested by

no test coverage detected