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

Function outgoing

__tests__/drupal-services.test.ts:224–228  ·  view source on GitHub ↗
(name: string, kind: string)

Source from the content-addressed store, hash-verified

222 fs.writeFileSync(full, content);
223 };
224 const outgoing = (name: string, kind: string): string[] => {
225 const node = cg.getNodesByName(name).find((n) => n.kind === kind);
226 if (!node) throw new Error(`no ${kind} ${name}`);
227 return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'references').map((e) => cg.getNode(e.target)!.name).sort();
228 };
229
230 beforeAll(async () => {
231 dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-drupal-services-'));

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesByNameMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected