MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / check

Function check

__tests__/extraction.test.ts:2769–2774  ·  view source on GitHub ↗
(inp: string, macro: string, rest: string)

Source from the content-addressed store, hash-verified

2767 // byte-for-byte the same length and identical *except* the macro is gone —
2768 // every downstream line/column stays exact.
2769 const check = (inp: string, macro: string, rest: string) => {
2770 const out = blankCppExportMacros(inp);
2771 expect(out.length).toBe(inp.length); // every byte offset preserved
2772 expect(out).not.toContain(macro); // the macro token is blanked
2773 expect(out.replace(/ +/g, ' ')).toBe(rest); // nothing else changed
2774 };
2775 // Generalizes across the export-macro space: UE _API, Qt/Boost _EXPORT,
2776 // LLVM _ABI, bare API.
2777 check(

Callers 1

extraction.test.tsFile · 0.70

Calls 1

blankCppExportMacrosFunction · 0.90

Tested by

no test coverage detected