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

Function TestNeedsSetupDev

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

Source from the content-addressed store, hash-verified

150}
151
152func TestNeedsSetupDev(t *testing.T) {
153 config := &configs.Config{
154 Mounts: []*configs.Mount{
155 {
156 Device: "bind",
157 Source: "/dev",
158 Destination: "/dev",
159 },
160 },
161 }
162 if needsSetupDev(config) {
163 t.Fatal("expected needsSetupDev to be false, got true")
164 }
165}
166
167func TestNeedsSetupDevStrangeSource(t *testing.T) {
168 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…