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

Function getDeadCode

__tests__/dead-code.test.ts:80–85  ·  view source on GitHub ↗
(query = '')

Source from the content-addressed store, hash-verified

78}
79
80async function getDeadCode(query = ''): Promise<any> {
81 const res = await request(`/api/deadcode${query}`);
82 expect(res.type).toBe('application/json; charset=utf-8');
83 expect(res.status).toBe(200);
84 return JSON.parse(res.body);
85}
86
87const names = (report: { entries: Array<{ node: { name: string } }> }): string[] =>
88 report.entries.map((entry) => entry.node.name);

Callers 1

dead-code.test.tsFile · 0.85

Calls 2

parseMethod · 0.80
requestFunction · 0.70

Tested by

no test coverage detected