(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestConvertVolumeToMountAnonymousBind(t *testing.T) { |
| 76 | config := composetypes.ServiceVolumeConfig{ |
| 77 | Type: "bind", |
| 78 | Target: "/foo/bar", |
| 79 | Bind: &composetypes.ServiceVolumeBind{ |
| 80 | Propagation: "slave", |
| 81 | }, |
| 82 | } |
| 83 | _, err := convertVolumeToMount(config, volumes{}, NewNamespace("foo")) |
| 84 | assert.Error(t, err, "invalid bind source, source cannot be empty") |
| 85 | } |
| 86 | |
| 87 | func TestConvertVolumeToMountUnapprovedType(t *testing.T) { |
| 88 | config := composetypes.ServiceVolumeConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…