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

Function write

__tests__/sync.test.ts:443–445  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

441 let cg: CodeGraph;
442
443 function write(rel: string, content: string) {
444 fs.writeFileSync(path.join(testDir, rel), content);
445 }
446
447 function callersOf(fnName: string, kind: string = 'function'): string[] {
448 const results = cg.searchNodes(fnName);

Callers 2

sync.test.tsFile · 0.70
installFatalHandlersFunction · 0.50

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected