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

Function TestNeedsSetupDevStrangeSourceDest

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

Source from the content-addressed store, hash-verified

195}
196
197func TestNeedsSetupDevStrangeSourceDest(t *testing.T) {
198 config := &configs.Config{
199 Mounts: []*configs.Mount{
200 {
201 Device: "bind",
202 Source: "/devx",
203 Destination: "/devx",
204 },
205 },
206 }
207 if !needsSetupDev(config) {
208 t.Fatal("expected needsSetupDev to be true, got false")
209 }
210}

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…