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

Method Program

cel/env.go:689–691  ·  view source on GitHub ↗

Program generates an evaluable instance of the Ast within the environment (Env).

(ast *Ast, opts ...ProgramOption)

Source from the content-addressed store, hash-verified

687
688// Program generates an evaluable instance of the Ast within the environment (Env).
689func (e *Env) Program(ast *Ast, opts ...ProgramOption) (Program, error) {
690 return e.PlanProgram(ast.NativeRep(), opts...)
691}
692
693// PlanProgram generates an evaluable instance of the AST in the go-native representation within
694// the environment (Env).

Callers 15

TestSimpleVariablesFunction · 0.95
TestNetwork_SuccessFunction · 0.95
TestStringFormatFunction · 0.95
TestLiteralOutputFunction · 0.95
TestListsRuntimeErrorsFunction · 0.95
TestListsVersionFunction · 0.95
TestStringFormatV2Function · 0.95
TestNativeStructEmbeddedFunction · 0.95
TestNativeNestedStructFunction · 0.95

Calls 2

PlanProgramMethod · 0.95
NativeRepMethod · 0.80

Tested by 15

TestSimpleVariablesFunction · 0.76
TestNetwork_SuccessFunction · 0.76
TestStringFormatFunction · 0.76
TestLiteralOutputFunction · 0.76
TestListsRuntimeErrorsFunction · 0.76
TestListsVersionFunction · 0.76
TestStringFormatV2Function · 0.76
TestNativeStructEmbeddedFunction · 0.76
TestNativeNestedStructFunction · 0.76