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

Function TestDeployWithEmptyName

cli/command/stack/deploy_test.go:16–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestDeployWithEmptyName(t *testing.T) {
17 cmd := newDeployCommand(test.NewFakeCli(&fakeClient{}))
18 cmd.SetArgs([]string{"' '"})
19 cmd.SetOut(io.Discard)
20 cmd.SetErr(io.Discard)
21
22 assert.ErrorContains(t, cmd.Execute(), `invalid stack name: "' '"`)
23}
24
25func TestPruneServices(t *testing.T) {
26 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newDeployCommandFunction · 0.85
SetArgsMethod · 0.80
SetOutMethod · 0.45
SetErrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…