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

Function funcDecl

interpreter/interpreter_test.go:2700–2707  ·  view source on GitHub ↗
(t testing.TB, name string, opts ...decls.FunctionOpt)

Source from the content-addressed store, hash-verified

2698}
2699
2700func funcDecl(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
2701 t.Helper()
2702 fn, err := decls.NewFunction(name, opts...)
2703 if err != nil {
2704 t.Fatalf("NewFunction(%v) failed: %v", name, err)
2705 }
2706 return fn
2707}
2708
2709func funcBindings(t testing.TB, funcs ...*decls.FunctionDecl) []*functions.Overload {
2710 t.Helper()

Callers 3

optionalDeclsFunction · 0.85
testDataFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected