MCPcopy Index your code
hub / github.com/containerd/containerd / TestImagePull

Function TestImagePull

integration/client/client_test.go:222–235  ·  view source on GitHub ↗

All the container's tests depends on this, we need it to run first.

(t *testing.T)

Source from the content-addressed store, hash-verified

220
221// All the container's tests depends on this, we need it to run first.
222func TestImagePull(t *testing.T) {
223 client, err := newClient(t, address)
224 if err != nil {
225 t.Fatal(err)
226 }
227 defer client.Close()
228
229 ctx, cancel := testContext(t)
230 defer cancel()
231 _, err = client.Pull(ctx, testImage, WithPlatformMatcher(platforms.Default()))
232 if err != nil {
233 t.Fatal(err)
234 }
235}
236
237func TestImagePullWithDiscardContent(t *testing.T) {
238 client, err := newClient(t, address)

Callers

nothing calls this directly

Calls 6

newClientFunction · 0.85
testContextFunction · 0.85
WithPlatformMatcherFunction · 0.85
FatalMethod · 0.80
CloseMethod · 0.65
PullMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…