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

Function loadCMapFixture

src/fontbox/cmap/parser.test.ts:12–15  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

10import { parseCMap } from "./parser.ts";
11
12function loadCMapFixture(name: string): Uint8Array {
13 const path = join(process.cwd(), "fixtures", "cmap", name);
14 return new Uint8Array(readFileSync(path));
15}
16
17describe("CMap Parser", () => {
18 describe("testLookup", () => {

Callers 1

parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected