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

Function write

__tests__/c-feature-macro-variants.test.ts:24–27  ·  view source on GitHub ↗
(file: string, text: string)

Source from the content-addressed store, hash-verified

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',

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected