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

Function compile

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

Source from the content-addressed store, hash-verified

4095}
4096
4097func compile(t testing.TB, env *Env, expr string) Program {
4098 t.Helper()
4099 prg, err := compileOrError(t, env, expr)
4100 if err != nil {
4101 t.Fatal(err)
4102 }
4103 return prg
4104}
4105
4106func compileOrError(t testing.TB, env *Env, expr string) (Program, error) {
4107 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