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

Function TestUpdateCmd

cli/command/volume/update_test.go:11–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestUpdateCmd(t *testing.T) {
12 cmd := newUpdateCommand(
13 test.NewFakeCli(&fakeClient{}),
14 )
15 cmd.SetArgs([]string{})
16 cmd.SetOut(io.Discard)
17 cmd.SetErr(io.Discard)
18
19 err := cmd.Execute()
20
21 assert.ErrorContains(t, err, "requires 1 argument")
22}

Callers

nothing calls this directly

Calls 4

SetArgsMethod · 0.80
newUpdateCommandFunction · 0.70
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…