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

Method compile

policy/compiler_test.go:308–311  ·  view source on GitHub ↗
(t testing.TB, envOpts []cel.EnvOption, compilerOpts []CompilerOption)

Source from the content-addressed store, hash-verified

306}
307
308func (r *runner) compile(t testing.TB, envOpts []cel.EnvOption, compilerOpts []CompilerOption) (*cel.Env, *cel.Ast, *cel.Issues) {
309 policy := parsePolicy(t, r.name, r.parseOpts)
310 return compile(t, r.name, policy, envOpts, compilerOpts)
311}
312
313func (r *runner) compileRule(t testing.TB) (*cel.Env, *CompiledRule, *cel.Issues) {
314 t.Helper()

Callers 2

TestCompileFunction · 0.80
BenchmarkCompileFunction · 0.80

Calls 2

parsePolicyFunction · 0.85
compileFunction · 0.70

Tested by

no test coverage detected