File tree Expand file tree Collapse file tree 11 files changed +44
-48
lines changed
tests/compiler-plugin-tests/src
test-gen/kotlinx/rpc/codegen/test/runners
test/kotlin/kotlinx/rpc/codegen/test Expand file tree Collapse file tree 11 files changed +44
-48
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ kotlin {
18
18
dependencies {
19
19
api(projects.krpc.krpcCore)
20
20
21
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
22
- implementation(projects.core)
23
- implementation(projects.utils)
24
- implementation(projects.krpc.krpcSerialization.krpcSerializationCore)
25
-
26
21
implementation(libs.serialization.core)
27
22
implementation(libs.kotlin.reflect)
28
23
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ kotlin {
20
20
api(projects.krpc.krpcSerialization.krpcSerializationCore)
21
21
implementation(projects.krpc.krpcLogging)
22
22
23
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
24
- implementation(projects.utils)
25
-
26
23
api(libs.coroutines.core)
27
24
implementation(libs.serialization.core)
28
25
implementation(libs.kotlin.reflect)
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ kotlin {
14
14
api(projects.krpc.krpcClient)
15
15
api(projects.krpc.krpcKtor.krpcKtorCore)
16
16
17
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
18
- implementation(projects.krpc.krpcCore)
19
- implementation(projects.core)
20
-
21
17
api(libs.ktor.client.core)
22
18
api(libs.ktor.client.websockets)
23
19
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ kotlin {
14
14
dependencies {
15
15
api(projects.krpc.krpcCore)
16
16
17
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
18
- implementation(projects.core)
19
- implementation(projects.utils)
20
-
21
17
implementation(libs.ktor.websockets)
22
18
implementation(libs.coroutines.core)
23
19
implementation(libs.serialization.core)
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ kotlin {
18
18
dependencies {
19
19
api(projects.krpc.krpcCore)
20
20
21
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
22
- implementation(projects.core)
23
- implementation(projects.utils)
24
- implementation(projects.krpc.krpcSerialization.krpcSerializationCore)
25
-
26
21
implementation(projects.krpc.krpcLogging)
27
22
28
23
implementation(libs.serialization.core)
Original file line number Diff line number Diff line change 10
10
import org .jetbrains .kotlin .test .util .KtTestUtil ;
11
11
import org .jetbrains .kotlin .test .TargetBackend ;
12
12
import org .jetbrains .kotlin .test .TestMetadata ;
13
- import org .junit .Ignore ;
14
- import org .junit .jupiter .api .Disabled ;
15
13
import org .junit .jupiter .api .Test ;
16
14
17
15
import java .io .File ;
21
19
@ SuppressWarnings ("all" )
22
20
@ TestMetadata ("src/testData/box" )
23
21
@ TestDataPath ("$PROJECT_ROOT" )
24
- @ Disabled ("KRPC-137" )
25
22
public class BoxTestGenerated extends AbstractBoxTest {
26
23
@ Test
27
24
public void testAllFilesPresentInBox () {
Original file line number Diff line number Diff line change 9
9
import com .intellij .testFramework .TestDataPath ;
10
10
import org .jetbrains .kotlin .test .util .KtTestUtil ;
11
11
import org .jetbrains .kotlin .test .TestMetadata ;
12
- import org .junit .jupiter .api .Disabled ;
13
12
import org .junit .jupiter .api .Test ;
13
+
14
14
import java .io .File ;
15
15
import java .util .regex .Pattern ;
16
16
17
17
/** This class is generated by {@link kotlinx.rpc.codegen.test.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
18
18
@ SuppressWarnings ("all" )
19
19
@ TestMetadata ("src/testData/diagnostics" )
20
20
@ TestDataPath ("$PROJECT_ROOT" )
21
- @ Disabled ("KRPC-137" )
22
21
public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
23
22
@ Test
24
23
public void testAllFilesPresentInDiagnostics () {
Original file line number Diff line number Diff line change 4
4
5
5
package kotlinx.rpc.codegen.test
6
6
7
+ import kotlinx.rpc.codegen.test.runners.AbstractBoxTest
8
+ import kotlinx.rpc.codegen.test.runners.AbstractDiagnosticTest
7
9
import org.jetbrains.kotlin.generators.generateTestGroupSuiteWithJUnit5
8
10
9
11
fun main () {
10
12
generateTestGroupSuiteWithJUnit5 {
11
13
testGroup(testDataRoot = " src/testData" , testsRoot = " src/test-gen" ) {
12
- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
13
- // testClass<AbstractDiagnosticTest> {
14
- // model("diagnostics")
15
- // }
14
+ testClass<AbstractDiagnosticTest > {
15
+ model(" diagnostics" )
16
+ }
16
17
17
- // testClass<AbstractBoxTest> {
18
- // model("box")
19
- // }
18
+ testClass<AbstractBoxTest > {
19
+ model(" box" )
20
+ }
20
21
}
21
22
}
22
23
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
package kotlinx.rpc.codegen.test.services
@@ -22,12 +22,12 @@ private class RuntimeDependency(
22
22
val name : String ,
23
23
) {
24
24
val filter = FilenameFilter { _, filename ->
25
- filename.startsWith(name) && filename.endsWith(" .jar" )
25
+ filename.startsWith(name) && filename.endsWith(" .jar" ) && ! filename.contains( " sources " )
26
26
}
27
27
}
28
28
29
29
private object RpcClasspathProvider {
30
- private val TEST_RUNTIME = RuntimeDependency (" build/libs/" , " compiler-plugin-test " )
30
+ private val TEST_RUNTIME = RuntimeDependency (" build/libs/" , " compiler-plugin-tests " )
31
31
private val KRPC_CORE_JVM = RuntimeDependency (" $globalRootDir /krpc/krpc-core/build/libs/" , " krpc-core-jvm" )
32
32
private val CORE_JVM = RuntimeDependency (" $globalRootDir /core/build/libs/" , " core-jvm" )
33
33
private val UTILS_JVM = RuntimeDependency (" $globalRootDir /utils/build/libs/" , " utils-jvm" )
Original file line number Diff line number Diff line change @@ -85,3 +85,23 @@ FILE: rpcChecked.kt
85
85
R|kotlinx/rpc/descriptor/serviceDescriptorOf|<R|NotAService|>()
86
86
R|kotlinx/rpc/descriptor/serviceDescriptorOf|<R|T|>()
87
87
}
88
+ @R|kotlinx/rpc/annotations/Rpc|() public final annotation class Grpc : R|kotlin/Annotation| {
89
+ public constructor(): R|Grpc| {
90
+ super<R|kotlin/Any|>()
91
+ }
92
+
93
+ }
94
+ @R|Grpc|() public abstract interface MyGrpcService : R|kotlin/Any| {
95
+ }
96
+ @R|Grpc|() public final class WrongGrpcTarget : R|kotlin/Any| {
97
+ public constructor(): R|WrongGrpcTarget| {
98
+ super<R|kotlin/Any|>()
99
+ }
100
+
101
+ }
102
+ @R|kotlinx/rpc/annotations/Rpc|() public final class WrongRpcTarget : R|kotlin/Any| {
103
+ public constructor(): R|WrongRpcTarget| {
104
+ super<R|kotlin/Any|>()
105
+ }
106
+
107
+ }
You can’t perform that action at this time.
0 commit comments