MCPcopy
hub / github.com/moby/moby / assertContainerMountPoint

Function assertContainerMountPoint

integration/container/mounts_linux_test.go:137–156  ·  view source on GitHub ↗
(t *testing.T, mountPoint, expected containertypes.MountPoint)

Source from the content-addressed store, hash-verified

135}
136
137func 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
158func TestContainerBindMountInspect(t *testing.T) {
159 skip.If(t, testEnv.IsRemoteDaemon)

Callers 2

Calls 3

CheckMethod · 0.80
EqualMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…