MCPcopy Index your code
hub / github.com/containerd/containerd / TestPopulateDefaultUnixSpec

Function TestPopulateDefaultUnixSpec

pkg/oci/spec_test.go:245–256  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

243}
244
245func 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
258func TestWithPrivileged(t *testing.T) {
259 t.Parallel()

Callers

nothing calls this directly

Calls 3

WithNamespaceFunction · 0.92
populateDefaultUnixSpecFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…