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 {
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
}
}
}
@@ -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
}
}
}