(t *testing.T, name string, opts ...decls.FunctionOpt)
| 1589 | } |
| 1590 | |
| 1591 | func mustNewFunction(t *testing.T, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 1592 | t.Helper() |
| 1593 | fn, err := decls.NewFunction(name, opts...) |
| 1594 | if err != nil { |
| 1595 | t.Fatalf("decls.NewFunction() failed: %v", err) |
| 1596 | } |
| 1597 | return fn |
| 1598 | } |
| 1599 | |
| 1600 | func assertFuncEquals(t *testing.T, got, want *decls.FunctionDecl) { |
| 1601 | t.Helper() |
no test coverage detected