[ObjCExport] ObjCExportDependenciesHeaderGeneratorTest: Add tests for exported / non exported dependencies

KT-65670
This commit is contained in:
Sebastian Sellmair
2024-02-26 08:56:59 +01:00
committed by Space Team
parent 64503d9217
commit 7ee2903e15
6 changed files with 206 additions and 1 deletions
@@ -52,7 +52,24 @@ class ObjCExportDependenciesHeaderGeneratorTest(
doTest(dependenciesDir.resolve("implementIterator"))
}
@Test
fun `test - notExportedDependency`() {
doTest(
dependenciesDir.resolve("notExportedDependency"), configuration = HeaderGenerator.Configuration(
frameworkName = "MyApp",
generateBaseDeclarationStubs = true,
dependencies = listOf(testLibraryAKlibFile, testLibraryBKlibFile),
)
)
}
/**
* https://youtrack.jetbrains.com/issue/KT-65327/Support-reading-klib-contents-in-Analysis-API
* Requires being able to use AA to iterate over symbols to 'export' the dependency
*/
@Test
@TodoAnalysisApi
fun `test - exportedAndNotExportedDependency`() {
doTest(
dependenciesDir.resolve("exportedAndNotExportedDependency"), configuration = HeaderGenerator.Configuration(