(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestExecResizeError(t *testing.T) { |
| 29 | client, err := New(WithMockClient(errorMock(http.StatusInternalServerError, "Server error"))) |
| 30 | assert.NilError(t, err) |
| 31 | _, err = client.ExecResize(t.Context(), "exec_id", ExecResizeOptions{}) |
| 32 | assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) |
| 33 | } |
| 34 | |
| 35 | func TestContainerResize(t *testing.T) { |
| 36 | const expectedURL = "/containers/container_id/resize" |
nothing calls this directly
no test coverage detected
searching dependent graphs…