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

Function compile

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

Source from the content-addressed store, hash-verified

3989}
3990
3991func compile(t testing.TB, env *Env, expr string) Program {
3992 t.Helper()
3993 prg, err := compileOrError(t, env, expr)
3994 if err != nil {
3995 t.Fatal(err)
3996 }
3997 return prg
3998}
3999
4000func compileOrError(t testing.TB, env *Env, expr string) (Program, error) {
4001 t.Helper()

Callers 5

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