[Commonizer] Fix ImportAndCheckNavigation IT
This commit is contained in:
@@ -21,7 +21,7 @@ import org.junit.Test
|
|||||||
class ImportAndCheckNavigation : MasterPluginVersionGradleImportingTestCase() {
|
class ImportAndCheckNavigation : MasterPluginVersionGradleImportingTestCase() {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@PluginTargetVersions(gradleVersion = "5.0+", pluginVersion = "1.3.50+", gradleVersionForLatestPlugin = mppImportTestMinVersionForMaster)
|
@PluginTargetVersions(gradleVersion = "6.0+", pluginVersion = "1.4+", gradleVersionForLatestPlugin = mppImportTestMinVersionForMaster)
|
||||||
fun testNavigationToCommonizedLibrary() {
|
fun testNavigationToCommonizedLibrary() {
|
||||||
val files = configureAndImportProject()
|
val files = configureAndImportProject()
|
||||||
|
|
||||||
|
|||||||
+5
-6
@@ -1,13 +1,12 @@
|
|||||||
package arm64
|
package arm64
|
||||||
|
|
||||||
import kotlinx.cinterop.CPointer
|
import kotlinx.cinterop.*
|
||||||
import platform.posix.FILE
|
import platform.posix.*
|
||||||
import platform.posix.fopen
|
|
||||||
import platform.posix.fprintf
|
|
||||||
import platform.zlib.uInt
|
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
||||||
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
|
|
||||||
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
||||||
|
memScoped {
|
||||||
|
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-7
@@ -1,13 +1,12 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
import kotlinx.cinterop.CPointer
|
import kotlinx.cinterop.*
|
||||||
import platform.posix.FILE
|
import platform.posix.*
|
||||||
import platform.posix.fopen
|
|
||||||
import platform.posix.fprintf
|
|
||||||
import platform.zlib.uInt
|
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val file: CPointer< /* NAVIGATION-TARGET:expect class FILE */ FILE> = /* NAVIGATION-TARGET:external expect fun fopen */ fopen("file.txt", "r") ?: return
|
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external expect fun fopen */ fopen("file.txt", "r") ?: return
|
||||||
fun f1(): /* NAVIGATION-TARGET:expect class uInt */ uInt = TODO()
|
|
||||||
/* NAVIGATION-TARGET:external expect fun fprintf */ fprintf(null, "")
|
/* NAVIGATION-TARGET:external expect fun fprintf */ fprintf(null, "")
|
||||||
|
memScoped {
|
||||||
|
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final expect class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-6
@@ -1,13 +1,12 @@
|
|||||||
package x64
|
package x64
|
||||||
|
|
||||||
import kotlinx.cinterop.CPointer
|
import kotlinx.cinterop.*
|
||||||
import platform.posix.FILE
|
import platform.posix.*
|
||||||
import platform.posix.fopen
|
|
||||||
import platform.posix.fprintf
|
|
||||||
import platform.zlib.uInt
|
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
||||||
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
|
|
||||||
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
||||||
|
memScoped {
|
||||||
|
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user