(over: Partial<WireEntryPoints> = {})
| 185 | /* --------------------------------------------------------- entry points -- */ |
| 186 | |
| 187 | function entryPoints(over: Partial<WireEntryPoints> = {}): WireEntryPoints { |
| 188 | return { |
| 189 | frameworks: [], |
| 190 | routes: { |
| 191 | routed: false, |
| 192 | routeCount: 0, |
| 193 | items: { total: 0, shown: 0, truncated: false, items: [] }, |
| 194 | }, |
| 195 | tests: { total: 0, shown: 0, truncated: false, items: [] }, |
| 196 | index: { lastIndexedAt: null, files: 0 }, |
| 197 | timing: { elapsedMs: 0, cached: false }, |
| 198 | files: { |
| 199 | total: 2, |
| 200 | shown: 2, |
| 201 | truncated: false, |
| 202 | items: [ |
| 203 | { |
| 204 | ...result({ id: 'file:src/bin/codegraph.ts', kind: 'file', name: 'codegraph.ts' }), |
| 205 | file: 'src/bin/codegraph.ts', |
| 206 | calls: 9, |
| 207 | reaches: 37, |
| 208 | dependents: 3, |
| 209 | }, |
| 210 | ] as any, |
| 211 | }, |
| 212 | hubs: { |
| 213 | total: 1, |
| 214 | shown: 1, |
| 215 | truncated: false, |
| 216 | items: [{ ...result({ id: 'method:get', name: 'get' }), dependents: 264 }] as any, |
| 217 | }, |
| 218 | ...over, |
| 219 | } as WireEntryPoints; |
| 220 | } |
| 221 | |
| 222 | describe('the entry points', () => { |
| 223 | it('says what each row is derived from, not that it IS the entry point', () => { |
no test coverage detected