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

Function has

__tests__/cfml-inheritance-resolution.test.ts:50–51  ·  view source on GitHub ↗
(edges: any[], src: string, tgt: string, tgtFile: string, kind = 'extends')

Source from the content-addressed store, hash-verified

48 return edges;
49 };
50 const has = (edges: any[], src: string, tgt: string, tgtFile: string, kind = 'extends') =>
51 edges.some((e) => e.src === src && e.tgt === tgt && e.tgtFile === tgtFile && e.kind === kind);
52
53 it('resolves a dotted path whose mapping root is absent from the repo (the ColdBox shape)', async () => {
54 write('system/web/Controller.cfc', `component {\n function handle() { return 1; }\n}\n`);

Calls

no outgoing calls

Tested by

no test coverage detected