(files: Map<string, File>)
| 97 | } |
| 98 | |
| 99 | function getLocalSplatCandidates(files: Map<string, File>): LocalSplatCandidate[] { |
| 100 | const seen = new Set<File>(); |
| 101 | const candidates: LocalSplatCandidate[] = []; |
| 102 | |
| 103 | for (const [path, file] of files) { |
| 104 | const candidatePath = normalizeSplatSourcePath(isSplatFilePath(path) ? path : file.name); |
| 105 | if (!isSplatFilePath(candidatePath) || seen.has(file)) { |
| 106 | continue; |
| 107 | } |
| 108 | |
| 109 | seen.add(file); |
| 110 | candidates.push({ |
| 111 | path: candidatePath, |
| 112 | size: file.size, |
| 113 | file, |
| 114 | }); |
| 115 | } |
| 116 | |
| 117 | return candidates; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Find all splat files in a scanned dataset, sorted by default preference: |
no test coverage detected