(file)
| 46 | const idCache = new Map(); |
| 47 | |
| 48 | function idsOf(file) { |
| 49 | if (!idCache.has(file)) { |
| 50 | const ids = new Set(); |
| 51 | |
| 52 | for (const match of readFileSync(file, "utf8").matchAll( |
| 53 | /\bid="([^"]+)"/gu |
| 54 | )) { |
| 55 | ids.add(match[1]); |
| 56 | } |
| 57 | |
| 58 | idCache.set(file, ids); |
| 59 | } |
| 60 | |
| 61 | return idCache.get(file); |
| 62 | } |
| 63 | |
| 64 | const errors = []; |
| 65 |
no test coverage detected