Skip to content

Commit df147fc

Browse files
authored
Skip modules we already know require testable (#35)
Small performance win from this.
1 parent 090d4f8 commit df147fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/unnecessary-testable/main.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ func main(indexStorePath: String) {
193193
continue
194194
}
195195

196+
if requiredTestableImports.contains(moduleName) {
197+
continue
198+
}
199+
196200
seenModules.insert(moduleName)
197201

198202
recordReader.forEach { (occurrence: SymbolOccurrence) in

0 commit comments

Comments
 (0)