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

Function tailOf

__tests__/sync-import-binding-retry.test.ts:346–347  ·  view source on GitHub ↗
(file: string, name: string, kind: string)

Source from the content-addressed store, hash-verified

344 .prepare("SELECT reference_name AS name, reference_kind AS kind, file_path AS file, name_tail AS tail FROM unresolved_refs WHERE status = 'failed'")
345 .all() as Array<{ name: string; kind: string; file: string; tail: string }>;
346 const tailOf = (file: string, name: string, kind: string): string | undefined =>
347 rows.find((r) => r.file === file && r.name === name && r.kind === kind)?.tail;
348
349 expect(tailOf('src/routes/routes.ts', 'tagsController', 'imports')).toBe('module:tag');
350 expect(tailOf('src/pages/groups_page.test.tsx', 'GroupsPageWrapper', 'imports')).toBe('module:groups_page');

Calls

no outgoing calls

Tested by

no test coverage detected