MCPcopy Create free account
hub / github.com/LibPDF-js/core / loadFixture

Function loadFixture

benchmarks/fixtures.ts:30–34  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

28 * Load a fixture file as bytes.
29 */
30export async function loadFixture(path: string): Promise<Uint8Array> {
31 const buffer = await readFile(path);
32
33 return new Uint8Array(buffer);
34}
35
36/**
37 * Get the heavy PDF fixture (~10MB).

Callers 10

copying.bench.tsFile · 0.90
splitting.bench.tsFile · 0.90
loading.bench.tsFile · 0.90
saving.bench.tsFile · 0.90
forms.bench.tsFile · 0.90
getHeavyPdfFunction · 0.70
getLargePdfFunction · 0.70
buildSyntheticPdfFunction · 0.70
getOrCreateSyntheticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected