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

Function routeNames

__tests__/codeigniter.test.ts:15–15  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

13
14const extract = (file: string, source: string) => codeigniterResolver.extract!(file, source);
15const routeNames = (file: string, source: string): string[] => extract(file, source).nodes.map((n) => n.name);
16
17describe('routes from a controller', () => {
18 const controller = `<?php

Callers 1

Calls 2

mapMethod · 0.80
extractFunction · 0.70

Tested by

no test coverage detected