(t *testing.T)
| 862 | } |
| 863 | |
| 864 | func TestDoRequestRejectsEmptyURL(t *testing.T) { |
| 865 | t.Parallel() |
| 866 | |
| 867 | client := NewClient("") |
| 868 | err := doRequestErrorForTest(context.Background(), client, "", acceptJSON) |
| 869 | if err == nil { |
| 870 | t.Fatal("doRequest() error = nil, want empty URL failure") |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | func TestDoRequestRejectsInvalidURL(t *testing.T) { |
| 875 | t.Parallel() |
nothing calls this directly
no test coverage detected