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

Function testEnv

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

Source from the content-addressed store, hash-verified

4377}
4378
4379func testEnv(t testing.TB, opts ...EnvOption) *Env {
4380 t.Helper()
4381 e, err := NewEnv(opts...)
4382 if err != nil {
4383 t.Fatalf("NewEnv() failed: %v", err)
4384 }
4385 return e
4386}
4387
4388func compile(t testing.TB, env *Env, expr string) Program {
4389 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