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

Function compile

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

Source from the content-addressed store, hash-verified

4444}
4445
4446func compile(t testing.TB, env *Env, expr string) Program {
4447 t.Helper()
4448 prg, err := compileOrError(t, env, expr)
4449 if err != nil {
4450 t.Fatal(err)
4451 }
4452 return prg
4453}
4454
4455func compileOrError(t testing.TB, env *Env, expr string) (Program, error) {
4456 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