MCPcopy
hub / github.com/moby/moby / TestExecInspectError

Function TestExecInspectError

client/container_exec_test.go:177–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

175}
176
177func 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
187func TestExecInspect(t *testing.T) {
188 const expectedURL = "/exec/exec_id/json"

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…