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

Function tailOf

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

Source from the content-addressed store, hash-verified

349 .prepare("SELECT reference_name AS name, reference_kind AS kind, file_path AS file, name_tail AS tail FROM unresolved_refs WHERE status = 'failed'")
350 .all() as Array<{ name: string; kind: string; file: string; tail: string }>;
351 const tailOf = (file: string, name: string, kind: string): string | undefined =>
352 rows.find((r) => r.file === file && r.name === name && r.kind === kind)?.tail;
353
354 // A module named relative to the importing file's package, or absolutely.
355 expect(tailOf('app/main.py', 'UserModel', 'imports')).toBe('module:models');

Calls

no outgoing calls

Tested by

no test coverage detected