(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestNewListCommandAmbiguous(t *testing.T) { |
| 108 | cli := test.NewFakeCli(&fakeClient{}) |
| 109 | cmd := newImagesCommand(cli) |
| 110 | cmd.SetOut(io.Discard) |
| 111 | |
| 112 | // Set the Use field to mimic that the command was called as "docker images", |
| 113 | // not "docker image ls". |
| 114 | cmd.Use = "images" |
| 115 | cmd.SetArgs([]string{"ls"}) |
| 116 | err := cmd.Execute() |
| 117 | assert.NilError(t, err) |
| 118 | golden.Assert(t, cli.ErrBuffer().String(), "list-command-ambiguous.golden") |
| 119 | } |
| 120 | |
| 121 | func TestImagesFilterDangling(t *testing.T) { |
| 122 | // Create test images with different states |
nothing calls this directly
no test coverage detected
searching dependent graphs…