MCPcopy
hub / github.com/moby/moby / TestExecStartError

Function TestExecStartError

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

Source from the content-addressed store, hash-verified

76}
77
78func TestExecStartError(t *testing.T) {
79 client, err := New(
80 WithMockClient(errorMock(http.StatusInternalServerError, "Server error")),
81 )
82 assert.NilError(t, err)
83
84 _, err = client.ExecStart(t.Context(), "nothing", ExecStartOptions{})
85 assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal))
86}
87
88func TestExecStart(t *testing.T) {
89 const expectedURL = "/exec/exec_id/start"

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…