testSpec returns a simple spec that can be used in tests.
()
| 67 | |
| 68 | // testSpec returns a simple spec that can be used in tests. |
| 69 | func 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…