MCPcopy
hub / github.com/moby/moby / TestExecResizeError

Function TestExecResizeError

client/container_resize_test.go:28–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func 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
35func TestContainerResize(t *testing.T) {
36 const expectedURL = "/containers/container_id/resize"

Callers

nothing calls this directly

Calls 6

WithMockClientFunction · 0.85
errorMockFunction · 0.85
CheckMethod · 0.80
NewFunction · 0.70
ExecResizeMethod · 0.65
ContextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…