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

Function TestRunServicesWithEmptyName

cli/command/stack/services_test.go:64–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestRunServicesWithEmptyName(t *testing.T) {
65 cmd := newServicesCommand(test.NewFakeCli(&fakeClient{}))
66 cmd.SetArgs([]string{"' '"})
67 cmd.SetOut(io.Discard)
68 cmd.SetErr(io.Discard)
69
70 assert.ErrorContains(t, cmd.Execute(), `invalid stack name: "' '"`)
71}
72
73func TestStackServicesEmptyServiceList(t *testing.T) {
74 fakeCli := test.NewFakeCli(&fakeClient{

Callers

nothing calls this directly

Calls 4

newServicesCommandFunction · 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…