Skip to content

Commit

Permalink
Fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanMcKee committed Jan 1, 2021
1 parent c854a37 commit a4b83a0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions debuglog-plugin/src/test/kotlin/com/bnorm/debug/log/TestUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import com.strobel.decompiler.DecompilerSettings
import com.strobel.decompiler.PlainTextOutput
import com.tschuchort.compiletesting.KotlinCompilation
import com.tschuchort.compiletesting.SourceFile
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar
import org.jetbrains.kotlin.utils.indexOfFirst
import org.junit.jupiter.api.Assertions
import java.io.ByteArrayOutputStream
import java.io.PrintStream
import java.io.StringWriter
import java.lang.reflect.InvocationTargetException
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar
import org.jetbrains.kotlin.utils.indexOfFirst
import org.junit.jupiter.api.Assertions

fun assertFunction(javaCode: String, functionStatement: String, expectedFunction: String) {
Assertions.assertEquals(expectedFunction, fetchMethodByPrefix(javaCode, functionStatement))
Expand Down Expand Up @@ -76,7 +76,7 @@ fun fetchMethodByPrefix(classText: String, methodSignaturePrefix: String): Strin

fun compile(
sourceFiles: List<SourceFile>,
plugin: ComponentRegistrar,
plugin: ComponentRegistrar
): KotlinCompilation.Result {
return KotlinCompilation().apply {
sources = sourceFiles
Expand All @@ -89,7 +89,7 @@ fun compile(

fun compile(
sourceFile: SourceFile,
plugin: ComponentRegistrar,
plugin: ComponentRegistrar
): KotlinCompilation.Result {
return compile(listOf(sourceFile), plugin)
}
Expand Down Expand Up @@ -140,4 +140,3 @@ fun KotlinCompilation.Result.javaCode(className: String): String {
writer.toString().trimEnd().trimIndent()
}
}

0 comments on commit a4b83a0

Please sign in to comment.