(t *testing.T)
| 150 | } |
| 151 | |
| 152 | func 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 | |
| 167 | func TestNeedsSetupDevStrangeSource(t *testing.T) { |
| 168 | config := &configs.Config{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…