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

Function compile

cel/cel_test.go:5212–5219  ·  view source on GitHub ↗
(t testing.TB, env *Env, expr string)

Source from the content-addressed store, hash-verified

5210}
5211
5212func compile(t testing.TB, env *Env, expr string) Program {
5213 t.Helper()
5214 prg, err := compileOrError(t, env, expr)
5215 if err != nil {
5216 t.Fatal(err)
5217 }
5218 return prg
5219}
5220
5221func compileOrError(t testing.TB, env *Env, expr string) (Program, error) {
5222 t.Helper()

Callers 7

TestAbbrevsCompiledFunction · 0.70
TestExtendStdlibFunctionFunction · 0.70
TestTypeIsolationFunction · 0.70
TestCustomExistsMacroFunction · 0.70
BenchmarkDynamicDispatchFunction · 0.70

Calls 1

compileOrErrorFunction · 0.85

Tested by

no test coverage detected