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

Function testFunction

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

Source from the content-addressed store, hash-verified

1385}
1386
1387func testFunction(t *testing.T, name string, opts ...FunctionOpt) *FunctionDecl {
1388 t.Helper()
1389 fn, err := NewFunction(name, opts...)
1390 if err != nil {
1391 t.Fatalf("NewFunction() failed: %v", err)
1392 }
1393 return fn
1394}

Callers 2

Calls 1

NewFunctionFunction · 0.70

Tested by

no test coverage detected