(entries: Array<{ path: string; entry: ArchiveEntry }>)
| 22 | } |
| 23 | |
| 24 | function indexArchiveImages(entries: Array<{ path: string; entry: ArchiveEntry }>): Map<string, ArchiveEntry> { |
| 25 | const index = new Map<string, ArchiveEntry>(); |
| 26 | for (const { path, entry } of entries) { |
| 27 | for (const key of getArchiveImageLookupKeys(path)) { |
| 28 | if (!index.has(key)) { |
| 29 | index.set(key, entry); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | return index; |
| 34 | } |
| 35 | |
| 36 | describe('zip archive state', () => { |
| 37 | beforeEach(() => { |
no test coverage detected