(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestNewSentinelHttpError(t *testing.T) { |
| 11 | actual := NewSentinelHttpError(http.StatusInternalServerError, "foo") |
| 12 | expect := SentinelHttpError{ |
| 13 | status: http.StatusInternalServerError, |
| 14 | message: "foo", |
| 15 | } |
| 16 | |
| 17 | if !reflect.DeepEqual(actual, expect) { |
| 18 | t.Errorf("expected %v but got %v", expect, actual) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestSentinelHttpError_Error(t *testing.T) { |
| 23 | err := SentinelHttpError{ |
nothing calls this directly
no test coverage detected