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

Function write

__tests__/python-module-resolution.test.ts:32–38  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

30 });
31
32 function write(files: Record<string, string>): void {
33 for (const [rel, content] of Object.entries(files)) {
34 const abs = path.join(tempDir, rel);
35 fs.mkdirSync(path.dirname(abs), { recursive: true });
36 fs.writeFileSync(abs, content);
37 }
38 }
39
40 /** `kind` edges leaving `fnName` in `file`, as `name@file` of each target. */
41 function targets(fnName: string, file: string, kind: 'calls' | 'imports'): string[] {

Callers 2

editAndCompareFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected