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

Function write

__tests__/cpp-operator-arrow-targets.test.ts:26–29  ·  view source on GitHub ↗
(file: string, text: string)

Source from the content-addressed store, hash-verified

24 beforeAll(async () => {
25 root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-operator-arrow-'));
26 const write = (file: string, text: string): void => {
27 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
28 fs.writeFileSync(path.join(root, file), text);
29 };
30 write('src/types.h', lines(
31 '#include <memory>',
32 'namespace ns {',

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected