|
@@ -121,13 +121,13 @@ func TestFprint(t *testing.T) {
|
|
|
want: "cause error\nEOF\n",
|
|
want: "cause error\nEOF\n",
|
|
|
}, {
|
|
}, {
|
|
|
err: x, // return from errors.New
|
|
err: x, // return from errors.New
|
|
|
- want: "error\n",
|
|
|
|
|
|
|
+ want: "github.com/pkg/errors/errors_test.go:104: error\n",
|
|
|
}, {
|
|
}, {
|
|
|
err: Wrap(x, "message"),
|
|
err: Wrap(x, "message"),
|
|
|
- want: "github.com/pkg/errors/errors_test.go:126: message\nerror\n",
|
|
|
|
|
|
|
+ want: "github.com/pkg/errors/errors_test.go:126: message\ngithub.com/pkg/errors/errors_test.go:104: error\n",
|
|
|
}, {
|
|
}, {
|
|
|
err: Wrap(Wrap(x, "message"), "another message"),
|
|
err: Wrap(Wrap(x, "message"), "another message"),
|
|
|
- want: "github.com/pkg/errors/errors_test.go:129: another message\ngithub.com/pkg/errors/errors_test.go:129: message\nerror\n",
|
|
|
|
|
|
|
+ want: "github.com/pkg/errors/errors_test.go:129: another message\ngithub.com/pkg/errors/errors_test.go:129: message\ngithub.com/pkg/errors/errors_test.go:104: error\n",
|
|
|
}}
|
|
}}
|
|
|
|
|
|
|
|
for i, tt := range tests {
|
|
for i, tt := range tests {
|