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

Function TestRemove

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

Source from the content-addressed store, hash-verified

43}
44
45func TestRemove(t *testing.T) {
46 cli := test.NewFakeCli(&fakeClient{})
47 cmd := newRemoveCommand(cli)
48 cmd.SetArgs([]string{"plugin-foo"})
49 assert.NilError(t, cmd.Execute())
50 assert.Check(t, is.Equal("plugin-foo\n", cli.OutBuffer().String()))
51}
52
53func TestRemoveWithForceOption(t *testing.T) {
54 force := false

Callers

nothing calls this directly

Calls 4

OutBufferMethod · 0.95
SetArgsMethod · 0.80
newRemoveCommandFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…