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

Function TestPluginDisable

cli/command/plugin/disable_test.go:49–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestPluginDisable(t *testing.T) {
50 cli := test.NewFakeCli(&fakeClient{
51 pluginDisableFunc: func(name string, disableOptions client.PluginDisableOptions) (client.PluginDisableResult, error) {
52 return client.PluginDisableResult{}, nil
53 },
54 })
55 cmd := newDisableCommand(cli)
56 cmd.SetArgs([]string{"plugin-foo"})
57 assert.NilError(t, cmd.Execute())
58 assert.Check(t, is.Equal("plugin-foo\n", cli.OutBuffer().String()))
59}

Callers

nothing calls this directly

Calls 4

OutBufferMethod · 0.95
newDisableCommandFunction · 0.85
SetArgsMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…