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

Function threeLazySources

src/store/reconstructionStore.test.ts:451–462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449 }
450
451 function threeLazySources() {
452 const fileA = new File(['a'], 'a.ply');
453 useReconstructionStore.getState().setLoadedFiles(baseLoadedFiles({
454 splatFile: fileA,
455 splatFiles: [fileA],
456 splatFileSources: [
457 { id: 'splats/a.ply', path: 'splats/a.ply', url: 'https://x/splats/a.ply', file: fileA },
458 { id: 'splats/b.ply', path: 'splats/b.ply', url: 'https://x/splats/b.ply' },
459 { id: 'splats/c.ply', path: 'splats/c.ply', url: 'https://x/splats/c.ply' },
460 ],
461 }));
462 }
463
464 it('latest-wins: an out-of-order lazy fetch does not overwrite a newer selection', async () => {
465 const deferreds = stubDeferredFetch();

Callers 1

Calls 1

baseLoadedFilesFunction · 0.85

Tested by

no test coverage detected