(t *testing.T)
| 175 | } |
| 176 | |
| 177 | func TestExecInspectError(t *testing.T) { |
| 178 | client, err := New( |
| 179 | WithMockClient(errorMock(http.StatusInternalServerError, "Server error")), |
| 180 | ) |
| 181 | assert.NilError(t, err) |
| 182 | |
| 183 | _, err = client.ExecInspect(t.Context(), "nothing", ExecInspectOptions{}) |
| 184 | assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) |
| 185 | } |
| 186 | |
| 187 | func TestExecInspect(t *testing.T) { |
| 188 | const expectedURL = "/exec/exec_id/json" |
nothing calls this directly
no test coverage detected
searching dependent graphs…