(importPath: string, names: Iterable<string>)
| 782 | } |
| 783 | |
| 784 | function longestName(importPath: string, names: Iterable<string>): string | null { |
| 785 | let best: string | null = null; |
| 786 | for (const name of names) { |
| 787 | if ((importPath === name || importPath.startsWith(name + '/')) && (best === null || name.length > best.length)) best = name; |
| 788 | } |
| 789 | return best; |
| 790 | } |
| 791 | |
| 792 | /** |
| 793 | * The targets a package's manifest declares for `subpath` (`''` or |
no outgoing calls
no test coverage detected