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 {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user