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

Function TestNewRemoveCommandAlias

cli/command/image/remove_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25func (notFound) NotFound() {}
26
27func TestNewRemoveCommandAlias(t *testing.T) {
28 cmd := newImageRemoveCommand(test.NewFakeCli(&fakeClient{}))
29 cmd.SetArgs([]string{""})
30 assert.Check(t, cmd.HasAlias("rmi"))
31 assert.Check(t, cmd.HasAlias("remove"))
32 assert.Check(t, !cmd.HasAlias("other"))
33}
34
35func TestNewRemoveCommandErrors(t *testing.T) {
36 testCases := []struct {

Callers

nothing calls this directly

Calls 2

newImageRemoveCommandFunction · 0.85
SetArgsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…