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

Function TestNewListCommandAlias

cli/command/image/list_test.go:100–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

98}
99
100func TestNewListCommandAlias(t *testing.T) {
101 cmd := newListCommand(test.NewFakeCli(&fakeClient{}))
102 cmd.SetArgs([]string{""})
103 assert.Check(t, cmd.HasAlias("list"))
104 assert.Check(t, !cmd.HasAlias("other"))
105}
106
107func TestNewListCommandAmbiguous(t *testing.T) {
108 cli := test.NewFakeCli(&fakeClient{})

Callers

nothing calls this directly

Calls 2

SetArgsMethod · 0.80
newListCommandFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…