KT-62676 [AA] Small refactoring of AbstractReferenceShortener*Test
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ abstract class AbstractReferenceShortenerForWholeFileTest : AbstractAnalysisApiB
|
||||
|
||||
val shortenings = executeOnPooledThreadInReadAction {
|
||||
analyseForTest(file) {
|
||||
ShortenStrategy.values().map { option ->
|
||||
ShortenStrategy.entries.associateWith { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShortenings(
|
||||
file,
|
||||
file.textRange,
|
||||
@@ -28,7 +28,7 @@ abstract class AbstractReferenceShortenerForWholeFileTest : AbstractAnalysisApiB
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
|
||||
Pair(option.name, shorteningsForOption)
|
||||
shorteningsForOption
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -28,7 +28,7 @@ abstract class AbstractReferenceShortenerTest : AbstractAnalysisApiBasedSingleMo
|
||||
|
||||
val shortenings = executeOnPooledThreadInReadAction {
|
||||
analyseForTest(element) {
|
||||
ShortenStrategy.values().map { option ->
|
||||
ShortenStrategy.entries.associateWith { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShorteningsInElement(
|
||||
element,
|
||||
shortenOptions = ShortenOptions.ALL_ENABLED,
|
||||
@@ -36,7 +36,7 @@ abstract class AbstractReferenceShortenerTest : AbstractAnalysisApiBasedSingleMo
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
|
||||
Pair(option.name, shorteningsForOption)
|
||||
shorteningsForOption
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user