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 {
1818 dependencies {
1919 api(projects.krpc.krpcCore)
2020
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-
2621 implementation(libs.serialization.core)
2722 implementation(libs.kotlin.reflect)
2823
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ kotlin {
2020 api(projects.krpc.krpcSerialization.krpcSerializationCore)
2121 implementation(projects.krpc.krpcLogging)
2222
23- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
24- implementation(projects.utils)
25-
2623 api(libs.coroutines.core)
2724 implementation(libs.serialization.core)
2825 implementation(libs.kotlin.reflect)
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ kotlin {
1414 api(projects.krpc.krpcClient)
1515 api(projects.krpc.krpcKtor.krpcKtorCore)
1616
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-
2117 api(libs.ktor.client.core)
2218 api(libs.ktor.client.websockets)
2319
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ kotlin {
1414 dependencies {
1515 api(projects.krpc.krpcCore)
1616
17- // KRPC-137 Remove temporary explicit dependencies in 2.1.10 and unmute compiler tests
18- implementation(projects.core)
19- implementation(projects.utils)
20-
2117 implementation(libs.ktor.websockets)
2218 implementation(libs.coroutines.core)
2319 implementation(libs.serialization.core)
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ kotlin {
1818 dependencies {
1919 api(projects.krpc.krpcCore)
2020
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-
2621 implementation(projects.krpc.krpcLogging)
2722
2823 implementation(libs.serialization.core)
Original file line number Diff line number Diff line change 1010import org .jetbrains .kotlin .test .util .KtTestUtil ;
1111import org .jetbrains .kotlin .test .TargetBackend ;
1212import org .jetbrains .kotlin .test .TestMetadata ;
13- import org .junit .Ignore ;
14- import org .junit .jupiter .api .Disabled ;
1513import org .junit .jupiter .api .Test ;
1614
1715import java .io .File ;
2119@ SuppressWarnings ("all" )
2220@ TestMetadata ("src/testData/box" )
2321@ TestDataPath ("$PROJECT_ROOT" )
24- @ Disabled ("KRPC-137" )
2522public class BoxTestGenerated extends AbstractBoxTest {
2623 @ Test
2724 public void testAllFilesPresentInBox () {
Original file line number Diff line number Diff line change 99import com .intellij .testFramework .TestDataPath ;
1010import org .jetbrains .kotlin .test .util .KtTestUtil ;
1111import org .jetbrains .kotlin .test .TestMetadata ;
12- import org .junit .jupiter .api .Disabled ;
1312import org .junit .jupiter .api .Test ;
13+
1414import java .io .File ;
1515import java .util .regex .Pattern ;
1616
1717/** This class is generated by {@link kotlinx.rpc.codegen.test.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
1818@ SuppressWarnings ("all" )
1919@ TestMetadata ("src/testData/diagnostics" )
2020@ TestDataPath ("$PROJECT_ROOT" )
21- @ Disabled ("KRPC-137" )
2221public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
2322 @ Test
2423 public void testAllFilesPresentInDiagnostics () {
Original file line number Diff line number Diff line change 44
55package kotlinx.rpc.codegen.test
66
7+ import kotlinx.rpc.codegen.test.runners.AbstractBoxTest
8+ import kotlinx.rpc.codegen.test.runners.AbstractDiagnosticTest
79import org.jetbrains.kotlin.generators.generateTestGroupSuiteWithJUnit5
810
911fun main () {
1012 generateTestGroupSuiteWithJUnit5 {
1113 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+ }
1617
17- // testClass<AbstractBoxTest> {
18- // model("box")
19- // }
18+ testClass<AbstractBoxTest > {
19+ model(" box" )
20+ }
2021 }
2122 }
2223}
Original file line number Diff line number Diff line change 11/*
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.
33 */
44
55package kotlinx.rpc.codegen.test.services
@@ -22,12 +22,12 @@ private class RuntimeDependency(
2222 val name : String ,
2323) {
2424 val filter = FilenameFilter { _, filename ->
25- filename.startsWith(name) && filename.endsWith(" .jar" )
25+ filename.startsWith(name) && filename.endsWith(" .jar" ) && ! filename.contains( " sources " )
2626 }
2727}
2828
2929private object RpcClasspathProvider {
30- private val TEST_RUNTIME = RuntimeDependency (" build/libs/" , " compiler-plugin-test " )
30+ private val TEST_RUNTIME = RuntimeDependency (" build/libs/" , " compiler-plugin-tests " )
3131 private val KRPC_CORE_JVM = RuntimeDependency (" $globalRootDir /krpc/krpc-core/build/libs/" , " krpc-core-jvm" )
3232 private val CORE_JVM = RuntimeDependency (" $globalRootDir /core/build/libs/" , " core-jvm" )
3333 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
8585 R|kotlinx/rpc/descriptor/serviceDescriptorOf|<R|NotAService|>()
8686 R|kotlinx/rpc/descriptor/serviceDescriptorOf|<R|T|>()
8787 }
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