KT-64205 [AA] Add shortening with default settings to the testData
This commit is contained in:
+12
-8
@@ -20,15 +20,19 @@ abstract class AbstractReferenceShortenerForWholeFileTest : AbstractAnalysisApiB
|
||||
|
||||
val shortenings = executeOnPooledThreadInReadAction {
|
||||
analyseForTest(file) {
|
||||
ShortenStrategy.entries.associateWith { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShortenings(
|
||||
file,
|
||||
file.textRange,
|
||||
classShortenStrategy = { option },
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
buildMap {
|
||||
this += "default settings" to collectPossibleReferenceShortenings(file, file.textRange)
|
||||
|
||||
shorteningsForOption
|
||||
this += ShortenStrategy.entries.associateWith { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShortenings(
|
||||
file,
|
||||
file.textRange,
|
||||
classShortenStrategy = { option },
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
|
||||
shorteningsForOption
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+12
-8
@@ -29,15 +29,19 @@ abstract class AbstractReferenceShortenerTest : AbstractAnalysisApiBasedSingleMo
|
||||
|
||||
val shortenings = executeOnPooledThreadInReadAction {
|
||||
analyseForTest(element) {
|
||||
ShortenStrategy.entries.associateWith { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShorteningsInElement(
|
||||
element,
|
||||
shortenOptions = ShortenOptions.ALL_ENABLED,
|
||||
classShortenStrategy = { option },
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
buildMap {
|
||||
this += "default settings" to collectPossibleReferenceShorteningsInElement(element)
|
||||
|
||||
shorteningsForOption
|
||||
this += ShortenStrategy.entries.associate { option ->
|
||||
val shorteningsForOption = collectPossibleReferenceShorteningsInElement(
|
||||
element,
|
||||
shortenOptions = ShortenOptions.ALL_ENABLED,
|
||||
classShortenStrategy = { option },
|
||||
callableShortenStrategy = { option }
|
||||
)
|
||||
|
||||
option.toString() to shorteningsForOption
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user