(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestConvertVolumeToMountAnonymousVolume(t *testing.T) { |
| 62 | config := composetypes.ServiceVolumeConfig{ |
| 63 | Type: "volume", |
| 64 | Target: "/foo/bar", |
| 65 | } |
| 66 | expected := mount.Mount{ |
| 67 | Type: mount.TypeVolume, |
| 68 | Target: "/foo/bar", |
| 69 | } |
| 70 | mnt, err := convertVolumeToMount(config, volumes{}, NewNamespace("foo")) |
| 71 | assert.NilError(t, err) |
| 72 | assert.Check(t, is.DeepEqual(expected, mnt)) |
| 73 | } |
| 74 | |
| 75 | func TestConvertVolumeToMountAnonymousBind(t *testing.T) { |
| 76 | config := composetypes.ServiceVolumeConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…