MCPcopy
hub / github.com/google/gvisor / testSpec

Function testSpec

runsc/boot/loader_test.go:69–80  ·  view source on GitHub ↗

testSpec returns a simple spec that can be used in tests.

()

Source from the content-addressed store, hash-verified

67
68// testSpec returns a simple spec that can be used in tests.
69func testSpec() *specs.Spec {
70 return &specs.Spec{
71 // The host filesystem root is the sandbox root.
72 Root: &specs.Root{
73 Path: "/",
74 Readonly: true,
75 },
76 Process: &specs.Process{
77 Args: []string{"/bin/true"},
78 },
79 }
80}
81
82// startGofer starts a new gofer routine serving 'root' path. It returns the
83// sandbox side of the connection, and a function that when called will stop the

Callers 6

TestRunFunction · 0.85
TestStartSignalFunction · 0.85
TestCreateMountNamespaceFunction · 0.85
TestCreateMountPointFunction · 0.85
TestNetworkConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…