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