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

Function writeTree

__tests__/python-attr-chain.test.ts:189–195  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

187 // carries a same-named distractor so a name-only guess cannot pass.
188
189 const writeTree = (files: Record<string, string>) => {
190 for (const [rel, body] of Object.entries(files)) {
191 const abs = path.join(tempDir, rel);
192 fs.mkdirSync(path.dirname(abs), { recursive: true });
193 fs.writeFileSync(abs, body);
194 }
195 };
196
197 it('resolves a call through a dotted module path', async () => {
198 writeTree({

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected