KTIJ-26423 [AA] Get rid of the old testdata for KtImportOptimizer

This testdata is some form will be transferred to the `intellij` repo
This commit is contained in:
Roman Golyshev
2023-10-24 17:44:10 +02:00
committed by teamcity
parent 4e4f3075bd
commit ef31eeae52
57 changed files with 0 additions and 60 deletions
@@ -19,17 +19,6 @@ abstract class AbstractAnalysisApiImportOptimizerTest : AbstractAnalysisApiBased
analyseImports(mainKtFile)
}
@Suppress("DEPRECATION")
val unusedImports = importsAnalysis.unusedImports
val unusedImportPaths = unusedImports
.map { it.importPath ?: error("Import $it should have an import path, instead was ${it.text}") }
.sortedBy { it.toString() } // for stable results
val actualUnusedImports = buildString {
unusedImportPaths.forEach(::appendLine)
}
val importAnalysisRendered = buildString {
val sortedUsedDeclarations = importsAnalysis.usedDeclarations
.toSortedMap(compareBy { importPath -> importPath.toString() })
@@ -50,7 +39,6 @@ abstract class AbstractAnalysisApiImportOptimizerTest : AbstractAnalysisApiBased
sortedUnresolvedNames.forEach(::appendLine)
}
testServices.assertions.assertEqualsToTestDataFileSibling(actualUnusedImports, extension = ".imports")
testServices.assertions.assertEqualsToTestDataFileSibling(importAnalysisRendered, extension = ".importsAnalysis")
}
}
@@ -1,2 +0,0 @@
test.SamePackage as Aliased
test.samePackage as aliased
@@ -1 +0,0 @@
dependency.Bar as BarAlias
@@ -1,4 +0,0 @@
test.Foo.extFuncFromBase
test.Foo.extPropFromBase
test.Foo.funcFromBase
test.Foo.propFromBase
@@ -1,6 +0,0 @@
test.Foo.callableReference
test.Foo.extFuncFromBase
test.Foo.extPropFromBase
test.Foo.funcFromBase
test.Foo.invoke
test.Foo.propFromBase
@@ -1,2 +0,0 @@
dependency.bar
dependency.foo
@@ -1,3 +0,0 @@
dependency.Bar
dependency.One
dependency.Two
@@ -1,2 +0,0 @@
dependency.Bar.function
dependency.Bar.property
@@ -1,3 +0,0 @@
dependency.Bar.callable
dependency.Bar.function
dependency.Bar.property
@@ -1,2 +0,0 @@
test.SamePackage
test.samePackage
@@ -1,3 +0,0 @@
KotlinChild.nonStaticFieldFromBase
dependency.Child.STATIC_CONSTANT_FROM_BASE
dependency.Child.staticFunFromBase