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

Function TestUseNoExist

cli/command/context/use_test.go:46–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestUseNoExist(t *testing.T) {
47 cli := makeFakeCli(t)
48 err := newUseCommand(cli).RunE(nil, []string{"test"})
49 assert.Check(t, is.ErrorType(err, errdefs.IsNotFound))
50}
51
52// TestUseDefaultWithoutConfigFile verifies that the CLI does not create
53// the default config file and directory when using the default context.

Callers

nothing calls this directly

Calls 2

makeFakeCliFunction · 0.85
newUseCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…