(t *testing.T, funcs ...*FunctionDecl)
| 1372 | } |
| 1373 | |
| 1374 | func 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 | |
| 1387 | func testFunction(t *testing.T, name string, opts ...FunctionOpt) *FunctionDecl { |
| 1388 | t.Helper() |
no test coverage detected