MCPcopy
hub / github.com/moby/moby / TestCheckpointListContainerNotFound

Function TestCheckpointListContainerNotFound

client/checkpoint_list_test.go:43–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestCheckpointListContainerNotFound(t *testing.T) {
44 client, err := New(
45 WithMockClient(errorMock(http.StatusNotFound, "Server error")),
46 )
47 assert.NilError(t, err)
48
49 _, err = client.CheckpointList(t.Context(), "unknown", CheckpointListOptions{})
50 assert.Check(t, is.ErrorType(err, cerrdefs.IsNotFound))
51}

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…