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

Function testEnv

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

Source from the content-addressed store, hash-verified

5201}
5202
5203func testEnv(t testing.TB, opts ...EnvOption) *Env {
5204 t.Helper()
5205 e, err := NewEnv(opts...)
5206 if err != nil {
5207 t.Fatalf("NewEnv() failed: %v", err)
5208 }
5209 return e
5210}
5211
5212func compile(t testing.TB, env *Env, expr string) Program {
5213 t.Helper()

Calls 1

NewEnvFunction · 0.70

Tested by

no test coverage detected