Ver Fonte

Remove checks for old style anon funcs (#186)

Signed-off-by: Dave Cheney <dave@cheney.net>
Dave Cheney há 7 anos atrás
pai
commit
584cbace28
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      stack_test.go

+ 3 - 3
stack_test.go

@@ -134,7 +134,7 @@ func TestStackTrace(t *testing.T) {
 		},
 	}, {
 		func() error { noinline(); return New("ooh") }(), []string{
-			`github.com/pkg/errors.(func·009|TestStackTrace.func1)` +
+			`github.com/pkg/errors.TestStackTrace.func1` +
 				"\n\t.+/github.com/pkg/errors/stack_test.go:136", // this is the stack of New
 			"github.com/pkg/errors.TestStackTrace\n" +
 				"\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) {
 				return Errorf("hello %s", fmt.Sprintf("world"))
 			}()
 		}()), []string{
-			`github.com/pkg/errors.(func·010|TestStackTrace.func2.1)` +
+			`github.com/pkg/errors.TestStackTrace.func2.1` +
 				"\n\t.+/github.com/pkg/errors/stack_test.go:145", // this is the stack of Errorf
-			`github.com/pkg/errors.(func·011|TestStackTrace.func2)` +
+			`github.com/pkg/errors.TestStackTrace.func2` +
 				"\n\t.+/github.com/pkg/errors/stack_test.go:146", // this is the stack of Errorf's caller
 			"github.com/pkg/errors.TestStackTrace\n" +
 				"\t.+/github.com/pkg/errors/stack_test.go:147", // this is the stack of Errorf's caller's caller