* How many apps the table splits into — `byRoot.size` of * angularRouteTable, counted from the routes alone: building the table * reads every file that mounts or redirects.
(context: ResolutionContext)
| 777 | * reads every file that mounts or redirects. |
| 778 | */ |
| 779 | function angularAppCount(context: ResolutionContext): number { |
| 780 | const all = context.getNodesByKind('route'); |
| 781 | const cached = appCounts.get(context); |
| 782 | if (cached && cached.source === all) return cached.count; |
| 783 | const roots = new Set<string>(); |
| 784 | for (const node of all) if (inAngularTable(node)) roots.add(angularAppRoot(node.filePath, context)); |
| 785 | appCounts.set(context, { source: all, count: roots.size }); |
| 786 | return roots.size; |
| 787 | } |
| 788 | |
| 789 | /** |
| 790 | * The routes a file navigates among: its app's, or — for a shared library |
no test coverage detected