(t *testing.T, name string, opts ...decls.FunctionOpt)
| 1482 | } |
| 1483 | |
| 1484 | func mustNewFunction(t *testing.T, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 1485 | t.Helper() |
| 1486 | fn, err := decls.NewFunction(name, opts...) |
| 1487 | if err != nil { |
| 1488 | t.Fatalf("decls.NewFunction() failed: %v", err) |
| 1489 | } |
| 1490 | return fn |
| 1491 | } |
| 1492 | |
| 1493 | func assertFuncEquals(t *testing.T, got, want *decls.FunctionDecl) { |
| 1494 | t.Helper() |
no test coverage detected