[ObjCExport] AA: Enable generation of base declarations
^KT-65738 Fixed
This commit is contained in:
committed by
Space Team
parent
2ae2f09fee
commit
e53e94516f
+6
@@ -12,6 +12,12 @@ interface HeaderGenerator {
|
||||
|
||||
data class Configuration(
|
||||
val frameworkName: String = "",
|
||||
|
||||
/**
|
||||
* Base declaration stubs do not change and have dedicated tests.
|
||||
* We do not generate them by default to keep test data easier to read.
|
||||
*/
|
||||
val generateBaseDeclarationStubs: Boolean = false,
|
||||
)
|
||||
|
||||
fun generateHeaders(root: File, configuration: Configuration = Configuration()): ObjCHeader
|
||||
|
||||
-3
@@ -7,7 +7,6 @@ package org.jetbrains.kotlin.backend.konan.tests
|
||||
|
||||
import org.jetbrains.kotlin.backend.konan.objcexport.ObjCTopLevel
|
||||
import org.jetbrains.kotlin.backend.konan.objcexport.StubRenderer
|
||||
import org.jetbrains.kotlin.backend.konan.testUtils.TodoAnalysisApi
|
||||
import org.jetbrains.kotlin.backend.konan.testUtils.baseDeclarationsDir
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils
|
||||
import org.junit.jupiter.api.Test
|
||||
@@ -26,13 +25,11 @@ class ObjCExportBaseDeclarationsTest(
|
||||
) {
|
||||
|
||||
@Test
|
||||
@TodoAnalysisApi
|
||||
fun `test - noTopLevelPrefix`() {
|
||||
doTest(baseDeclarationsDir.resolve("!noTopLevelPrefix.h"), "")
|
||||
}
|
||||
|
||||
@Test
|
||||
@TodoAnalysisApi
|
||||
fun `test - topLevelPrefix`() {
|
||||
doTest(baseDeclarationsDir.resolve("!topLevelPrefix.h"), "MyTopLevelPrefix")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user