aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Yuan Huang <laszio@google.com>2024-02-01 13:24:44 -0800
committerKSP Auto Pick <kotlin-symbol-processing@google.com>2024-02-02 04:04:53 +0000
commitfc77dce9aa509e6bea7236ebd236a8220643806e (patch)
treea93e9600ea59798fe2d338ebf07a7db0d6c92eab
parent4a91bac6520aeca0c62d9504af6a56924a3791d1 (diff)
downloadksp-fc77dce9aa509e6bea7236ebd236a8220643806e.tar.gz
IncrementalCPIT: fix tests
(cherry picked from commit b05d5c281f6789f78c50e7003cd3dcaca0b541b8)
-rw-r--r--integration-tests/src/test/kotlin/com/google/devtools/ksp/test/IncrementalCPIT.kt2
-rw-r--r--integration-tests/src/test/resources/incremental-classpath/validator/src/main/kotlin/Validator.kt6
2 files changed, 2 insertions, 6 deletions
diff --git a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/IncrementalCPIT.kt b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/IncrementalCPIT.kt
index 89459252..81a64e37 100644
--- a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/IncrementalCPIT.kt
+++ b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/IncrementalCPIT.kt
@@ -79,7 +79,6 @@ class IncrementalCPIT(val useKSP2: Boolean) {
val func2Dirty = listOf(
"l1/src/main/kotlin/p1/TopFunc1.kt" to setOf(
- "w: [ksp] p1/K3.kt",
"w: [ksp] processing done",
),
)
@@ -126,7 +125,6 @@ class IncrementalCPIT(val useKSP2: Boolean) {
val prop2Dirty = listOf(
"l1/src/main/kotlin/p1/TopProp1.kt" to setOf(
- "w: [ksp] p1/K3.kt",
"w: [ksp] processing done",
),
)
diff --git a/integration-tests/src/test/resources/incremental-classpath/validator/src/main/kotlin/Validator.kt b/integration-tests/src/test/resources/incremental-classpath/validator/src/main/kotlin/Validator.kt
index ade7779d..785b153d 100644
--- a/integration-tests/src/test/resources/incremental-classpath/validator/src/main/kotlin/Validator.kt
+++ b/integration-tests/src/test/resources/incremental-classpath/validator/src/main/kotlin/Validator.kt
@@ -64,17 +64,15 @@ class Validator : SymbolProcessor {
codeGenerator.createNewFile(Dependencies(false), "p1", "l5", "log")
codeGenerator.associateWithClasses(listOf(l5), "p1", "l5", "log")
- // create an output from MyTopFunc1, declared in TopFunc1.kt, and k3
+ // create an output from MyTopFunc1, declared in TopFunc1.kt
val myTopFunc1 = resolver.getFunctionDeclarationsByName("p1.MyTopFunc1", true).single()
codeGenerator.createNewFile(Dependencies(false), "p1", "MyTopFunc1", "log")
codeGenerator.associateWithFunctions(listOf(myTopFunc1), "p1", "MyTopFunc1", "log")
- codeGenerator.associateWithClasses(listOf(k3), "p1", "MyTopFunc1", "log")
- // create an output from MyTopFunc1, declared in TopFunc1.kt, and k3
+ // create an output from MyTopProp1, declared in TopFunc1.kt
val myTopProp1 = resolver.getPropertyDeclarationByName("p1.MyTopProp1", true)!!
codeGenerator.createNewFile(Dependencies(false), "p1", "MyTopProp1", "log")
codeGenerator.associateWithProperties(listOf(myTopProp1), "p1", "MyTopProp1", "log")
- codeGenerator.associateWithClasses(listOf(k3), "p1", "MyTopProp1", "log")
logger.warn("processing done")
processed = true