Skip to content

Commit

Permalink
Remove references to KotlinPoetKspPreview annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamBorland authored and glureau committed Jan 17, 2023
1 parent 23ca02b commit a7e76f3
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 17 deletions.
Expand Up @@ -17,10 +17,8 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Test

@KotlinPoetKspPreview
class ExportClassTest {

@Test
Expand Down
Expand Up @@ -17,10 +17,8 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Test

@KotlinPoetKspPreview
class ExportEnumTest {

@Test
Expand Down
Expand Up @@ -17,10 +17,8 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Test

@KotlinPoetKspPreview
class ExportInterfaceTest {

@Test
Expand Down
Expand Up @@ -16,10 +16,8 @@
*/
package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Test

@KotlinPoetKspPreview
class ExportSealedClassTest {
@Test
fun basicSealedClass() {
Expand Down
Expand Up @@ -17,11 +17,9 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Ignore
import org.junit.Test

@KotlinPoetKspPreview
class GenericsInterfaceTest {

@Test
Expand Down
Expand Up @@ -17,7 +17,6 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import com.tschuchort.compiletesting.KotlinCompilation
import com.tschuchort.compiletesting.SourceFile
import com.tschuchort.compiletesting.kspSourcesDir
Expand All @@ -32,12 +31,10 @@ import kotlin.test.fail
data class InputFile(val path: String, @Language("kotlin") val content: String)
data class ExpectedOutputFile(val path: String, @Language("kotlin") val content: String)

@KotlinPoetKspPreview
fun assertCompilationOutput(@Language("kotlin") fileContent: String, vararg files: ExpectedOutputFile) {
assertCompilationOutput(listOf(InputFile("Main.kt", fileContent)), files.asList())
}

@KotlinPoetKspPreview
fun assertCompilationOutput(inputFiles: List<InputFile>, expectedOutputFiles: List<ExpectedOutputFile>) {
// Requires to add the annotation here
val kustomExport = SourceFile.kotlin(
Expand Down Expand Up @@ -68,7 +65,6 @@ fun assertCompilationOutput(inputFiles: List<InputFile>, expectedOutputFiles: Li
}
}

@KotlinPoetKspPreview
private fun compile(
sourceFiles: List<SourceFile>,
expectedExitCode: KotlinCompilation.ExitCode = KotlinCompilation.ExitCode.OK
Expand All @@ -79,7 +75,6 @@ private fun compile(
return compilation
}

@KotlinPoetKspPreview
private fun prepareCompilation(sourceFiles: List<SourceFile>): KotlinCompilation {
return KotlinCompilation()
.apply {
Expand Down
Expand Up @@ -17,10 +17,8 @@

package deezer.kustomexport.compiler

import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import org.junit.Test

@KotlinPoetKspPreview
class TypeMappingTest {

@Test
Expand Down

0 comments on commit a7e76f3

Please sign in to comment.