(t testing.TB, name string, opts ...decls.FunctionOpt)
| 2863 | } |
| 2864 | |
| 2865 | func testFunction(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 2866 | t.Helper() |
| 2867 | fn, err := decls.NewFunction(name, opts...) |
| 2868 | if err != nil { |
| 2869 | t.Fatalf("decls.NewFunction(%s) failed: %v", name, err) |
| 2870 | } |
| 2871 | return fn |
| 2872 | } |
no test coverage detected