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

Function testFunction

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

Source from the content-addressed store, hash-verified

1538}
1539
1540func testFunction(t *testing.T, name string, opts ...FunctionOpt) *FunctionDecl {
1541 t.Helper()
1542 fn, err := NewFunction(name, opts...)
1543 if err != nil {
1544 t.Fatalf("NewFunction() failed: %v", err)
1545 }
1546 return fn
1547}

Callers 2

Calls 1

NewFunctionFunction · 0.70

Tested by

no test coverage detected