(file: string, text: string)
| 22 | beforeAll(async () => { |
| 23 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-c-feature-variants-')); |
| 24 | const write = (file: string, text: string): void => { |
| 25 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 26 | fs.writeFileSync(path.join(root, file), text); |
| 27 | }; |
| 28 | // lua-cjson in redis: the header's definition is for a build that sets USE_INTERNAL_FPCONV. |
| 29 | write('deps/lua/src/fpconv.h', lines( |
| 30 | '#ifndef FPCONV_H', |
no test coverage detected