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

Function testMerge

common/decls/decls_test.go:1374–1385  ·  view source on GitHub ↗
(t *testing.T, funcs ...*FunctionDecl)

Source from the content-addressed store, hash-verified

1372}
1373
1374func testMerge(t *testing.T, funcs ...*FunctionDecl) *FunctionDecl {
1375 t.Helper()
1376 fn := funcs[0]
1377 var err error
1378 for i := 1; i < len(funcs); i++ {
1379 fn, err = fn.Merge(funcs[i])
1380 if err != nil {
1381 t.Fatalf("%v.Merge(%v) failed: %v", fn, funcs[i], err)
1382 }
1383 }
1384 return fn
1385}
1386
1387func testFunction(t *testing.T, name string, opts ...FunctionOpt) *FunctionDecl {
1388 t.Helper()

Callers 1

Calls 1

MergeMethod · 0.80

Tested by

no test coverage detected