MCPcopy Create free account
hub / github.com/docker/cli / TestConvertVolumeToMountUnapprovedType

Function TestConvertVolumeToMountUnapprovedType

cli/compose/convert/volume_test.go:87–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestConvertVolumeToMountUnapprovedType(t *testing.T) {
88 config := composetypes.ServiceVolumeConfig{
89 Type: "foo",
90 Target: "/foo/bar",
91 }
92 _, err := convertVolumeToMount(config, volumes{}, NewNamespace("foo"))
93 assert.Error(t, err, "volume type must be volume, bind, tmpfs, npipe, or cluster")
94}
95
96func TestConvertVolumeToMountConflictingOptionsBindInVolume(t *testing.T) {
97 namespace := NewNamespace("foo")

Callers

nothing calls this directly

Calls 3

convertVolumeToMountFunction · 0.85
NewNamespaceFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…