MCPcopy
hub / github.com/opencontainers/runc / TestNeedsSetupDevStrangeDest

Function TestNeedsSetupDevStrangeDest

libcontainer/rootfs_linux_test.go:182–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

180}
181
182func TestNeedsSetupDevStrangeDest(t *testing.T) {
183 config := &configs.Config{
184 Mounts: []*configs.Mount{
185 {
186 Device: "bind",
187 Source: "/dev",
188 Destination: "/devx",
189 },
190 },
191 }
192 if !needsSetupDev(config) {
193 t.Fatal("expected needsSetupDev to be true, got false")
194 }
195}
196
197func TestNeedsSetupDevStrangeSourceDest(t *testing.T) {
198 config := &configs.Config{

Callers

nothing calls this directly

Calls 1

needsSetupDevFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…