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

Function project

__tests__/cpp-template-instantiations.test.ts:28–33  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

26const lines = (...l: string[]): string => [...l, ''].join('\n');
27
28function project(files: Record<string, string>): string {
29 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-template-'));
30 roots.push(root);
31 write(root, files);
32 return root;
33}
34
35function write(root: string, files: Record<string, string>): void {
36 for (const [rel, content] of Object.entries(files)) {

Callers 3

indexedFunction · 0.70
syncsFunction · 0.70

Calls 3

pushMethod · 0.80
writeFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected