MCPcopy Create free account
hub / github.com/docker/cli / TestDetectImportContentType

Function TestDetectImportContentType

cli/context/store/store_test.go:128–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

126}
127
128func TestDetectImportContentType(t *testing.T) {
129 buf := new(bytes.Buffer)
130 r := bufio.NewReader(buf)
131 ct, err := getImportContentType(r)
132 assert.NilError(t, err)
133 assert.Assert(t, zipType != ct)
134}
135
136func TestImportTarInvalid(t *testing.T) {
137 testDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

getImportContentTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…