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

Function buildDataTransfer

src/test/builders/fileFakes.ts:616–626  ·  view source on GitHub ↗
({
  types = ['Files'],
  files = [],
  items = [],
}: DataTransferBuilderOptions = {})

Source from the content-addressed store, hash-verified

614}
615
616export function buildDataTransfer({
617 types = ['Files'],
618 files = [],
619 items = [],
620}: DataTransferBuilderOptions = {}): DataTransfer {
621 return new TestDataTransfer({
622 types,
623 files,
624 items,
625 });
626}
627
628function encodeFileContents(contents: string): ArrayBuffer {
629 const bytes = new TextEncoder().encode(contents);

Callers 2

builders.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected