(t *testing.T)
| 180 | } |
| 181 | |
| 182 | func 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 | |
| 197 | func TestNeedsSetupDevStrangeSourceDest(t *testing.T) { |
| 198 | config := &configs.Config{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…