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

Function names

__tests__/python-module-resolution.test.ts:1546–1547  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1544
1545 describe('import parsing', () => {
1546 const names = (code: string) =>
1547 extractImportMappings('m.py', code, 'python').map((m) => `${m.localName}<-${m.source}:${m.exportedName}`);
1548
1549 it('reads a parenthesised multi-line list, with comments and a trailing comma', () => {
1550 expect(names('from .cart import (\n add_item, # note\n remove_item as rm,\n)\n')).toEqual([

Calls 2

extractImportMappingsFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected