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

Function makeMockFile

src/parsers/imageZipExport.test.ts:21–23  ·  view source on GitHub ↗
(data: Uint8Array, name: string, type = 'image/png')

Source from the content-addressed store, hash-verified

19const jpegBytes = new Uint8Array([255, 216, 255, 224, 1, 2, 3, 255, 217]);
20
21function makeMockFile(data: Uint8Array, name: string, type = 'image/png'): File {
22 return buildReadableBinaryFile({ contents: data, name, type });
23}
24
25function makeMockBlob(data: Uint8Array, type = 'image/jpeg'): Blob {
26 return buildReadableBinaryBlob({ contents: data, type });

Callers 1

Calls 1

buildReadableBinaryFileFunction · 0.90

Tested by

no test coverage detected