[ObjCExport] Fix property setter
KT-64953: Required part for enum translation
This commit is contained in:
committed by
Space Team
parent
576851e514
commit
8f2fc3d1e2
+29
@@ -123,6 +123,11 @@ class ObjCExportHeaderGeneratorTest(private val generator: HeaderGenerator) {
|
||||
doTest(headersTestDataDir.resolve("functionWithObjCNameAnnotation"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - propertyWithObjCNameAnnotation`() {
|
||||
doTest(headersTestDataDir.resolve("propertyWithObjCNameAnnotation"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - classWithKDoc`() {
|
||||
doTest(headersTestDataDir.resolve("classWithKDoc"))
|
||||
@@ -282,6 +287,30 @@ class ObjCExportHeaderGeneratorTest(private val generator: HeaderGenerator) {
|
||||
doTest(headersTestDataDir.resolve("companion"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - anonymous functions`() {
|
||||
doTest(headersTestDataDir.resolve("anonymousFunctions"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - sam interface`() {
|
||||
doTest(headersTestDataDir.resolve("samInterface"))
|
||||
}
|
||||
|
||||
/**
|
||||
* Requires some fixes: KT-65800
|
||||
*/
|
||||
@Test
|
||||
@TodoAnalysisApi
|
||||
fun `test - simple data class`() {
|
||||
doTest(headersTestDataDir.resolve("simpleDataClass"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - special function names`() {
|
||||
doTest(headersTestDataDir.resolve("specialFunctionNames"))
|
||||
}
|
||||
|
||||
private fun doTest(root: File, configuration: Configuration = Configuration()) {
|
||||
if (!root.isDirectory) fail("Expected ${root.absolutePath} to be directory")
|
||||
val generatedHeaders = generator.generateHeaders(root, configuration).toString()
|
||||
|
||||
Reference in New Issue
Block a user