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

Function has

__tests__/watcher.test.ts:1256–1256  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1254 const link = (target: string, name: string) =>
1255 fs.symlinkSync(target, name, process.platform === 'win32' ? 'junction' : 'dir');
1256 const has = (name: string) => cg!.getNodesByName(name).length > 0;
1257 const start = async () => {
1258 cg = initGraph(testDir, { config: { include: ['**/*.ts'], exclude: [] } });
1259 await cg.indexAll();

Callers 1

watcher.test.tsFile · 0.70

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected