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

Function compile

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

Source from the content-addressed store, hash-verified

4386}
4387
4388func compile(t testing.TB, env *Env, expr string) Program {
4389 t.Helper()
4390 prg, err := compileOrError(t, env, expr)
4391 if err != nil {
4392 t.Fatal(err)
4393 }
4394 return prg
4395}
4396
4397func compileOrError(t testing.TB, env *Env, expr string) (Program, error) {
4398 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