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

Function refsOf

__tests__/frameworks.test.ts:253–254  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

251 // route "inline", attributing the middleware's calls to it and dropping the
252 // named handler.
253 const refsOf = (src: string) =>
254 expressResolver.extract!('routes.ts', src).references.map((r) => `${r.referenceKind}:${r.referenceName}`);
255
256 it('keeps the named handler when a middleware argument holds an arrow', () => {
257 const refs = refsOf(`router.get('/users', rateLimit({ keyGenerator: (req) => lookup(req.ip) }), getUsers);\n`);

Callers 1

frameworks.test.tsFile · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected