(t *testing.T)
| 18 | ) |
| 19 | |
| 20 | func TestServiceCreateError(t *testing.T) { |
| 21 | client, err := New(WithMockClient(errorMock(http.StatusInternalServerError, "Server error"))) |
| 22 | assert.NilError(t, err) |
| 23 | _, err = client.ServiceCreate(t.Context(), ServiceCreateOptions{}) |
| 24 | assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) |
| 25 | } |
| 26 | |
| 27 | // TestServiceCreateConnectionError verifies that connection errors occurring |
| 28 | // during API-version negotiation are not shadowed by API-version errors. |
nothing calls this directly
no test coverage detected
searching dependent graphs…