[SLC] implement infrastructure for light class hierarchy tests

This commit is contained in:
Dmitrii Gridin
2022-12-07 15:18:01 +01:00
committed by Space Team
parent feff03894f
commit b2c0a37050
38 changed files with 2233 additions and 13 deletions
@@ -58,9 +58,11 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
protected abstract fun doTestByModuleStructure(moduleStructure: TestModuleStructure, testServices: TestServices)
protected fun AssertionsService.assertEqualsToTestDataFileSibling(actual: String, extension: String = ".txt") {
val testPrefix = configurator.testPrefix
protected fun AssertionsService.assertEqualsToTestDataFileSibling(
actual: String,
extension: String = ".txt",
testPrefix: String? = configurator.testPrefix,
) {
val expectedFile = getTestDataFileSiblingPath(extension, testPrefix = testPrefix)
assertEqualsToFile(expectedFile, actual)