KT-62676 [AA] Small refactoring of AbstractReferenceShortener*Test

This commit is contained in:
Roman Golyshev
2023-10-30 21:25:50 +01:00
committed by teamcity
parent b0f15451fd
commit 236a76f779
2 changed files with 4 additions and 4 deletions
@@ -20,7 +20,7 @@ abstract class AbstractReferenceShortenerForWholeFileTest : AbstractAnalysisApiB
val shortenings = executeOnPooledThreadInReadAction { val shortenings = executeOnPooledThreadInReadAction {
analyseForTest(file) { analyseForTest(file) {
ShortenStrategy.values().map { option -> ShortenStrategy.entries.associateWith { option ->
val shorteningsForOption = collectPossibleReferenceShortenings( val shorteningsForOption = collectPossibleReferenceShortenings(
file, file,
file.textRange, file.textRange,
@@ -28,7 +28,7 @@ abstract class AbstractReferenceShortenerForWholeFileTest : AbstractAnalysisApiB
callableShortenStrategy = { option } callableShortenStrategy = { option }
) )
Pair(option.name, shorteningsForOption) shorteningsForOption
} }
} }
} }
@@ -28,7 +28,7 @@ abstract class AbstractReferenceShortenerTest : AbstractAnalysisApiBasedSingleMo
val shortenings = executeOnPooledThreadInReadAction { val shortenings = executeOnPooledThreadInReadAction {
analyseForTest(element) { analyseForTest(element) {
ShortenStrategy.values().map { option -> ShortenStrategy.entries.associateWith { option ->
val shorteningsForOption = collectPossibleReferenceShorteningsInElement( val shorteningsForOption = collectPossibleReferenceShorteningsInElement(
element, element,
shortenOptions = ShortenOptions.ALL_ENABLED, shortenOptions = ShortenOptions.ALL_ENABLED,
@@ -36,7 +36,7 @@ abstract class AbstractReferenceShortenerTest : AbstractAnalysisApiBasedSingleMo
callableShortenStrategy = { option } callableShortenStrategy = { option }
) )
Pair(option.name, shorteningsForOption) shorteningsForOption
} }
} }
} }