MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / check

Function check

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

Source from the content-addressed store, hash-verified

3796 // byte-for-byte the same length and identical *except* the macro is gone —
3797 // every downstream line/column stays exact.
3798 const check = (inp: string, macro: string, rest: string) => {
3799 const out = blankCppExportMacros(inp);
3800 expect(out.length).toBe(inp.length); // every byte offset preserved
3801 expect(out).not.toContain(macro); // the macro token is blanked
3802 expect(out.replace(/ +/g, ' ')).toBe(rest); // nothing else changed
3803 };
3804 // Generalizes across the export-macro space: UE _API, Qt/Boost _EXPORT,
3805 // LLVM _ABI, bare API.
3806 check(

Callers 1

extraction.test.tsFile · 0.70

Calls 1

blankCppExportMacrosFunction · 0.90

Tested by

no test coverage detected