(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func TestPopulateDefaultUnixSpec(t *testing.T) { |
| 246 | var ( |
| 247 | c = containers.Container{ID: "TestWithDefaultSpec"} |
| 248 | ctx = namespaces.WithNamespace(context.Background(), "test") |
| 249 | ) |
| 250 | var expected Spec |
| 251 | |
| 252 | populateDefaultUnixSpec(ctx, &expected, c.ID) |
| 253 | if expected.Linux == nil { |
| 254 | t.Error("Cannot populate Unix Spec") |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | func TestWithPrivileged(t *testing.T) { |
| 259 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…