errEqual is essentially a copy of testutils.StatusErrEqual(), to avoid a cyclic dependency.
(err1, err2 error)
| 50 | // errEqual is essentially a copy of testutils.StatusErrEqual(), to avoid a |
| 51 | // cyclic dependency. |
| 52 | func errEqual(err1, err2 error) bool { |
| 53 | status1, ok := FromError(err1) |
| 54 | if !ok { |
| 55 | return false |
| 56 | } |
| 57 | status2, ok := FromError(err2) |
| 58 | if !ok { |
| 59 | return false |
| 60 | } |
| 61 | return proto.Equal(status1.Proto(), status2.Proto()) |
| 62 | } |
| 63 | |
| 64 | func (s) TestErrorsWithSameParameters(t *testing.T) { |
| 65 | const description = "some description" |
no test coverage detected