TestMountOptDefaultType ensures that a mount without the type defaults to a volume mount.
(t *testing.T)
| 100 | // TestMountOptDefaultType ensures that a mount without the type defaults to a |
| 101 | // volume mount. |
| 102 | func 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 | |
| 108 | func TestMountOptErrors(t *testing.T) { |
| 109 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…