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

Function flag

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

Source from the content-addressed store, hash-verified

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

Callers 1

extraction.test.tsFile · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected