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

Function TestExportAndImportMultiLayer

integration/client/import_test.go:67–73  ·  view source on GitHub ↗

TestExportAndImportMultiLayer exports testMultiLayeredImage as a tar stream, and import the tar stream as a new image. This should ensure that imported images remain sane, and that the Garbage Collector won't delete part of its content.

(t *testing.T)

Source from the content-addressed store, hash-verified

65// images remain sane, and that the Garbage Collector won't delete part of its
66// content.
67func TestExportAndImportMultiLayer(t *testing.T) {
68 // ghcr.io/containerd/volume-copy-up:2.1 is not available on s390x
69 if runtime.GOARCH == "s390x" {
70 t.Skip("test image not available on s390x")
71 }
72 testExportImport(t, testMultiLayeredImage)
73}
74
75func testExportImport(t *testing.T, imageName string) {
76 if testing.Short() {

Callers

nothing calls this directly

Calls 1

testExportImportFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…