(t *testing.T)
| 189 | } |
| 190 | |
| 191 | func (f *fakeBuild) headers(t *testing.T) []*tar.Header { |
| 192 | t.Helper() |
| 193 | var headers []*tar.Header |
| 194 | for { |
| 195 | hdr, err := f.context.Next() |
| 196 | switch err { |
| 197 | case io.EOF: |
| 198 | return headers |
| 199 | case nil: |
| 200 | headers = append(headers, hdr) |
| 201 | default: |
| 202 | assert.NilError(t, err) |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func (f *fakeBuild) filenames(t *testing.T) []string { |
| 208 | t.Helper() |
no test coverage detected