(filePath: string)
| 452 | * that contains them is telling the reader something untrue. |
| 453 | */ |
| 454 | export function isTestPath(filePath: string): boolean { |
| 455 | let known = TEST_PATHS.get(filePath); |
| 456 | if (known === undefined) { |
| 457 | known = readsAsTestPath(filePath); |
| 458 | if (TEST_PATHS.size >= TEST_PATHS_KEEP) TEST_PATHS.clear(); |
| 459 | TEST_PATHS.set(filePath, known); |
| 460 | } |
| 461 | return known; |
| 462 | } |
| 463 | |
| 464 | /** Resolving asks about the same paths for every reference and candidate, and the answer takes seven patterns. */ |
| 465 | const TEST_PATHS = new Map<string, boolean>(); |
no test coverage detected