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

Function testFunction

common/decls/decls_test.go:1549–1556  ·  view source on GitHub ↗
(t *testing.T, name string, opts ...FunctionOpt)

Source from the content-addressed store, hash-verified

1547}
1548
1549func testFunction(t *testing.T, name string, opts ...FunctionOpt) *FunctionDecl {
1550 t.Helper()
1551 fn, err := NewFunction(name, opts...)
1552 if err != nil {
1553 t.Fatalf("NewFunction() failed: %v", err)
1554 }
1555 return fn
1556}

Callers 2

Calls 1

NewFunctionFunction · 0.70

Tested by

no test coverage detected