MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / makeEntry

Function makeEntry

src/utils/zipArchiveState.test.ts:15–22  ·  view source on GitHub ↗
(name: string, file = new File([new Uint8Array([1, 2, 3])], name))

Source from the content-addressed store, hash-verified

13import { getArchiveImageLookupKeys } from './zipLoaderPolicy';
14
15function makeEntry(name: string, file = new File([new Uint8Array([1, 2, 3])], name)): ArchiveEntry {
16 return buildArchiveEntry({
17 name,
18 size: file.size,
19 lastModified: 0,
20 extract: vi.fn().mockResolvedValue(file),
21 });
22}
23
24function indexArchiveImages(entries: Array<{ path: string; entry: ArchiveEntry }>): Map<string, ArchiveEntry> {
25 const index = new Map<string, ArchiveEntry>();

Callers 1

Calls 1

buildArchiveEntryFunction · 0.90

Tested by

no test coverage detected