Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 584cbac

Browse files
authored
Remove checks for old style anon funcs (#186)
Signed-off-by: Dave Cheney <[email protected]>
1 parent 42ce1b6 commit 584cbac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stack_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestStackTrace(t *testing.T) {
134134
},
135135
}, {
136136
func() error { noinline(); return New("ooh") }(), []string{
137-
`github.com/pkg/errors.(func·009|TestStackTrace.func1)` +
137+
`github.com/pkg/errors.TestStackTrace.func1` +
138138
"\n\t.+/github.com/pkg/errors/stack_test.go:136", // this is the stack of New
139139
"github.com/pkg/errors.TestStackTrace\n" +
140140
"\t.+/github.com/pkg/errors/stack_test.go:136", // this is the stack of New's caller
@@ -145,9 +145,9 @@ func TestStackTrace(t *testing.T) {
145145
return Errorf("hello %s", fmt.Sprintf("world"))
146146
}()
147147
}()), []string{
148-
`github.com/pkg/errors.(func·010|TestStackTrace.func2.1)` +
148+
`github.com/pkg/errors.TestStackTrace.func2.1` +
149149
"\n\t.+/github.com/pkg/errors/stack_test.go:145", // this is the stack of Errorf
150-
`github.com/pkg/errors.(func·011|TestStackTrace.func2)` +
150+
`github.com/pkg/errors.TestStackTrace.func2` +
151151
"\n\t.+/github.com/pkg/errors/stack_test.go:146", // this is the stack of Errorf's caller
152152
"github.com/pkg/errors.TestStackTrace\n" +
153153
"\t.+/github.com/pkg/errors/stack_test.go:147", // this is the stack of Errorf's caller's caller

0 commit comments

Comments
 (0)