minimalRootfsTar returns a valid tar archive with no files.
(t *testing.T)
| 38 | |
| 39 | // minimalRootfsTar returns a valid tar archive with no files. |
| 40 | func minimalRootfsTar(t *testing.T) *bytes.Buffer { |
| 41 | t.Helper() |
| 42 | buf := new(bytes.Buffer) |
| 43 | tw := tar.NewWriter(buf) |
| 44 | assert.NilError(t, tw.Close()) |
| 45 | return buf |
| 46 | } |
| 47 | |
| 48 | func TestImageImportErrors(t *testing.T) { |
| 49 | nerdtest.Setup() |
no test coverage detected
searching dependent graphs…