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

Function write

__tests__/cpp-overload-constness.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-cpp-overload-constness-'));
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 // The const overloads come first, as in protobuf's message_lite.h.
29 write('src/message_lite.h', lines(
30 '#include <memory>',

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected