(t *testing.T, zf *zip.File)
| 505 | } |
| 506 | |
| 507 | func readZipFile(t *testing.T, zf *zip.File) []byte { |
| 508 | rc, err := zf.Open() |
| 509 | assert.NoError(t, err) |
| 510 | defer rc.Close() |
| 511 | |
| 512 | content, err := io.ReadAll(rc) |
| 513 | assert.NoError(t, err) |
| 514 | return content |
| 515 | } |
| 516 | |
| 517 | func createZipReader(t *testing.T, files map[string]string) *zip.Reader { |
| 518 | raw := createZipArchive(t, files) |
no test coverage detected