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

Function TestMountOptDefaultType

opts/mount_test.go:102–106  ·  view source on GitHub ↗

TestMountOptDefaultType ensures that a mount without the type defaults to a volume mount.

(t *testing.T)

Source from the content-addressed store, hash-verified

100// TestMountOptDefaultType ensures that a mount without the type defaults to a
101// volume mount.
102func TestMountOptDefaultType(t *testing.T) {
103 var m MountOpt
104 assert.NilError(t, m.Set("target=/target,source=/foo"))
105 assert.Check(t, is.Equal(mount.TypeVolume, m.values[0].Type))
106}
107
108func TestMountOptErrors(t *testing.T) {
109 tests := []struct {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…