(t testing.TB, config *configs.Config)
| 163 | } |
| 164 | |
| 165 | func newContainer(t testing.TB, config *configs.Config) (*libcontainer.Container, error) { |
| 166 | name := strings.ReplaceAll(t.Name(), "/", "_") + strconv.FormatInt(-int64(time.Now().Nanosecond()), 35) |
| 167 | root := t.TempDir() |
| 168 | |
| 169 | return libcontainer.Create(root, name, config) |
| 170 | } |
| 171 | |
| 172 | // runContainer runs the container with the specific config and arguments |
| 173 | // |
no test coverage detected
searching dependent graphs…