(t *testing.T, files map[string]string)
| 515 | } |
| 516 | |
| 517 | func createZipReader(t *testing.T, files map[string]string) *zip.Reader { |
| 518 | raw := createZipArchive(t, files) |
| 519 | |
| 520 | zr, err := zip.NewReader(bytes.NewReader(raw), int64(len(raw))) |
| 521 | assert.NoError(t, err) |
| 522 | |
| 523 | return zr |
| 524 | } |
| 525 | |
| 526 | func createZipArchive(t *testing.T, files map[string]string) []byte { |
| 527 | buf := bytes.NewBuffer(nil) |
no test coverage detected