@@ -17,7 +17,6 @@ import (
17
17
"time"
18
18
19
19
"github.com/google/go-cmp/cmp"
20
- "golang.org/x/xerrors"
21
20
)
22
21
23
22
type (
@@ -531,14 +530,14 @@ func TestOptions(t *testing.T) {
531
530
reason : "user-defined EOF is not exactly equal" ,
532
531
}, {
533
532
label : "EquateErrors" ,
534
- x : xerrors .Errorf ("wrapped: %w" , io .EOF ),
533
+ x : fmt .Errorf ("wrapped: %w" , io .EOF ),
535
534
y : io .EOF ,
536
535
opts : []cmp.Option {EquateErrors ()},
537
536
wantEqual : true ,
538
537
reason : "wrapped io.EOF is equal according to errors.Is" ,
539
538
}, {
540
539
label : "EquateErrors" ,
541
- x : xerrors .Errorf ("wrapped: %w" , io .EOF ),
540
+ x : fmt .Errorf ("wrapped: %w" , io .EOF ),
542
541
y : io .EOF ,
543
542
wantEqual : false ,
544
543
reason : "wrapped io.EOF is not equal without EquateErrors option" ,
@@ -585,14 +584,14 @@ func TestOptions(t *testing.T) {
585
584
reason : "user-defined EOF is not exactly equal" ,
586
585
}, {
587
586
label : "EquateErrors" ,
588
- x : xerrors .Errorf ("wrapped: %w" , io .EOF ),
587
+ x : fmt .Errorf ("wrapped: %w" , io .EOF ),
589
588
y : io .EOF ,
590
589
opts : []cmp.Option {EquateErrors ()},
591
590
wantEqual : true ,
592
591
reason : "wrapped io.EOF is equal according to errors.Is" ,
593
592
}, {
594
593
label : "EquateErrors" ,
595
- x : xerrors .Errorf ("wrapped: %w" , io .EOF ),
594
+ x : fmt .Errorf ("wrapped: %w" , io .EOF ),
596
595
y : io .EOF ,
597
596
wantEqual : false ,
598
597
reason : "wrapped io.EOF is not equal without EquateErrors option" ,
@@ -639,14 +638,14 @@ func TestOptions(t *testing.T) {
639
638
reason : "user-defined EOF is not exactly equal" ,
640
639
}, {
641
640
label : "EquateErrors" ,
642
- x : struct { E error }{xerrors .Errorf ("wrapped: %w" , io .EOF )},
641
+ x : struct { E error }{fmt .Errorf ("wrapped: %w" , io .EOF )},
643
642
y : struct { E error }{io .EOF },
644
643
opts : []cmp.Option {EquateErrors ()},
645
644
wantEqual : true ,
646
645
reason : "wrapped io.EOF is equal according to errors.Is" ,
647
646
}, {
648
647
label : "EquateErrors" ,
649
- x : struct { E error }{xerrors .Errorf ("wrapped: %w" , io .EOF )},
648
+ x : struct { E error }{fmt .Errorf ("wrapped: %w" , io .EOF )},
650
649
y : struct { E error }{io .EOF },
651
650
wantEqual : false ,
652
651
reason : "wrapped io.EOF is not equal without EquateErrors option" ,
0 commit comments