(t *testing.T, mountPoint, expected containertypes.MountPoint)
| 135 | } |
| 136 | |
| 137 | func assertContainerMountPoint(t *testing.T, mountPoint, expected containertypes.MountPoint) { |
| 138 | t.Helper() |
| 139 | |
| 140 | if expected.Source != "" { |
| 141 | assert.Check(t, is.Equal(mountPoint.Source, expected.Source)) |
| 142 | } |
| 143 | if expected.Name != "" { |
| 144 | assert.Check(t, is.Equal(mountPoint.Name, expected.Name)) |
| 145 | } |
| 146 | if expected.Driver != "" { |
| 147 | assert.Check(t, is.Equal(mountPoint.Driver, expected.Driver)) |
| 148 | } |
| 149 | if expected.Propagation != "" { |
| 150 | assert.Check(t, is.Equal(mountPoint.Propagation, expected.Propagation)) |
| 151 | } |
| 152 | assert.Check(t, is.Equal(mountPoint.RW, expected.RW)) |
| 153 | assert.Check(t, is.Equal(mountPoint.Type, expected.Type)) |
| 154 | assert.Check(t, is.Equal(mountPoint.Mode, expected.Mode)) |
| 155 | assert.Check(t, is.Equal(mountPoint.Destination, expected.Destination)) |
| 156 | } |
| 157 | |
| 158 | func TestContainerBindMountInspect(t *testing.T) { |
| 159 | skip.If(t, testEnv.IsRemoteDaemon) |
no test coverage detected
searching dependent graphs…