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

Function flag

__tests__/extraction.test.ts:13944–13945  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

13942 const cg = await CodeGraph.init(dir, { index: true });
13943 try {
13944 const flag = (name: string) =>
13945 cg.getNodesByKind('method').concat(cg.getNodesByKind('function')).find((n) => n.name === name)!.isExported;
13946 expect(flag('Close')).toBe(true);
13947 expect(flag('flush')).toBe(false);
13948 expect(flag('Open')).toBe(true);

Callers 1

extraction.test.tsFile · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected