MCPcopy Create free account
hub / github.com/docker/cli / TestPluginStubRunEReturnsParseError

Function TestPluginStubRunEReturnsParseError

cli-plugins/manager/cobra_test.go:32–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestPluginStubRunEReturnsParseError(t *testing.T) {
33 cmd, err := preparePluginStubCommand(t)
34 assert.NilError(t, err)
35
36 err = cmd.RunE(cmd, []string{"--definitely-not-a-real-flag"})
37 assert.ErrorContains(t, err, "unknown flag: --definitely-not-a-real-flag")
38}
39
40func TestPluginStubCompletionRestoresOSArgs(t *testing.T) {
41 cmd, err := preparePluginStubCommand(t)

Callers

nothing calls this directly

Calls 1

preparePluginStubCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…