[ObjCExport] Add companion object translation
KT-64953: Required part for enum translation
This commit is contained in:
committed by
Space Team
parent
acf2296590
commit
97f585dd25
+5
@@ -277,6 +277,11 @@ class ObjCExportHeaderGeneratorTest(private val generator: HeaderGenerator) {
|
||||
doTest(headersTestDataDir.resolve("constructors"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - companion`() {
|
||||
doTest(headersTestDataDir.resolve("companion"))
|
||||
}
|
||||
|
||||
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