(t *testing.T)
| 872 | } |
| 873 | |
| 874 | func TestDoRequestRejectsInvalidURL(t *testing.T) { |
| 875 | t.Parallel() |
| 876 | |
| 877 | client := NewClient("") |
| 878 | err := doRequestErrorForTest(context.Background(), client, "://bad", acceptJSON) |
| 879 | if err == nil { |
| 880 | t.Fatal("doRequest() error = nil, want invalid URL failure") |
| 881 | } |
| 882 | } |
| 883 | |
| 884 | func TestCheckRateLimitErrorsWhenRemainingZero(t *testing.T) { |
| 885 | t.Parallel() |
nothing calls this directly
no test coverage detected