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

Function write

__tests__/sync-rebuild-convergence.test.ts:60–64  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

58 let cg: CodeGraph;
59
60 const write = (rel: string, content: string) => {
61 const full = path.join(testDir, rel);
62 fs.mkdirSync(path.dirname(full), { recursive: true });
63 fs.writeFileSync(full, content);
64 };
65
66 /**
67 * Every edge as a `source|target|kind` triple, read from the database with a

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected