(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestSentinelHttpError_Error(t *testing.T) { |
| 23 | err := SentinelHttpError{ |
| 24 | message: "foo", |
| 25 | } |
| 26 | |
| 27 | actual := err.Error() |
| 28 | expect := "foo" |
| 29 | |
| 30 | if actual != expect { |
| 31 | t.Errorf("expected '%s' but got '%s'", expect, actual) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestSentinelHttpError_HttpError(t *testing.T) { |
| 36 | actualStatus, actualMessage := SentinelHttpError{ |