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

Function funcDecl

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

Source from the content-addressed store, hash-verified

2441}
2442
2443func funcDecl(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
2444 t.Helper()
2445 fn, err := decls.NewFunction(name, opts...)
2446 if err != nil {
2447 t.Fatalf("NewFunction(%v) failed: %v", name, err)
2448 }
2449 return fn
2450}
2451
2452func funcBindings(t testing.TB, funcs ...*decls.FunctionDecl) []*functions.Overload {
2453 t.Helper()

Callers 3

optionalDeclsFunction · 0.85
testDataFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected