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

Function TestCreateWithEmptySourceVolume

e2e/container/create_test.go:10–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestCreateWithEmptySourceVolume(t *testing.T) {
11 icmd.RunCmd(icmd.Command("docker", "create", "-v", ":/volume", fixtures.AlpineImage)).
12 Assert(t, icmd.Expected{
13 ExitCode: 125,
14 Err: "empty section between colons",
15 })
16}
17
18func TestCreateWithEmptyVolumeSpec(t *testing.T) {
19 icmd.RunCmd(icmd.Command("docker", "create", "-v", "", fixtures.AlpineImage)).

Callers

nothing calls this directly

Calls 1

CommandMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…