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

Function makeMockFile

src/parsers/reconstructionZipExport.test.ts:20–22  ·  view source on GitHub ↗
(data: Uint8Array, name: string, type = 'image/jpeg')

Source from the content-addressed store, hash-verified

18const encoder = new TextEncoder();
19
20function makeMockFile(data: Uint8Array, name: string, type = 'image/jpeg'): File {
21 return buildReadableBinaryFile({ contents: data, name, type });
22}
23
24function makeWriters(overrides: Partial<ReconstructionZipFileWriters> = {}): ReconstructionZipFileWriters {
25 return {

Callers 1

Calls 1

buildReadableBinaryFileFunction · 0.90

Tested by

no test coverage detected