File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ func TestErrField(t *testing.T) {
1111 Field : "foo" ,
1212 Err : & errpath.ErrField {
1313 Field : "bar" ,
14- Err : testErr ,
14+ Err : errTest ,
1515 },
1616 }
1717 if want := `foo.bar: a test error` ; err .Error () != want {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ func TestErrIndex(t *testing.T) {
1111 Index : 3 ,
1212 Err : & errpath.ErrIndex {
1313 Index : 5 ,
14- Err : testErr ,
14+ Err : errTest ,
1515 },
1616 }
1717 if want := `[3][5]: a test error` ; err .Error () != want {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ func TestErrKey(t *testing.T) {
1111 Key : "foo" ,
1212 Err : & errpath.ErrKey {
1313 Key : "bar" ,
14- Err : testErr ,
14+ Err : errTest ,
1515 },
1616 }
1717 if want := `["foo"]["bar"]: a test error` ; err .Error () != want {
Original file line number Diff line number Diff line change 77 "github.com/MarkRosemaker/errpath"
88)
99
10- var testErr = errors .New ("a test error" )
10+ var errTest = errors .New ("a test error" )
1111
1212func TestPath (t * testing.T ) {
1313 err := & errpath.ErrField {
You can’t perform that action at this time.
0 commit comments