MCPcopy Index your code
hub / github.com/docker/cli / TestNewImportCommandInvalidFile

Function TestNewImportCommandInvalidFile

cli/command/image/import_test.go:45–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestNewImportCommandInvalidFile(t *testing.T) {
46 cmd := newImportCommand(test.NewFakeCli(&fakeClient{}))
47 cmd.SetOut(io.Discard)
48 cmd.SetErr(io.Discard)
49 cmd.SetArgs([]string{"testdata/import-command-success.unexistent-file"})
50 assert.ErrorContains(t, cmd.Execute(), "testdata/import-command-success.unexistent-file")
51}
52
53func TestNewImportCommandSuccess(t *testing.T) {
54 testCases := []struct {

Callers

nothing calls this directly

Calls 4

SetArgsMethod · 0.80
newImportCommandFunction · 0.70
SetOutMethod · 0.45
SetErrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…