Skip to content

Commit

Permalink
Apply ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hello-zoka committed Oct 29, 2024
1 parent 197e9fd commit 0c4ec05
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class TestSparkStarter : ApplicationStarter {
out,
projectContext,
testCompiler,
junitVersion
junitVersion,
)
// Saving exception (if exists) thrown during the test execution
saveException(testcaseName, targetDirectory, testExecutionError)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TestSparkDisplayManager {
uiContext,
coverageVisualisationTabBuilder!!,
testsExecutionResultManager,
generationTool
generationTool,
)

generatedTestsTabBuilder!!.show(contentManager!!, language)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GeneratedTestsTabBuilder(
private val uiContext: UIContext,
private val coverageVisualisationTabBuilder: CoverageVisualisationTabBuilder,
private val testsExecutionResultManager: TestsExecutionResultManager,
private val generationTool: GenerationTool
private val generationTool: GenerationTool,
) {
private val generatedTestsTabData: GeneratedTestsTabData = GeneratedTestsTabData()

Expand Down Expand Up @@ -161,7 +161,7 @@ class GeneratedTestsTabBuilder(
coverageVisualisationTabBuilder,
generatedTestsTabData,
testsExecutionResultManager,
generationTool
generationTool,
)
testCasePanel.add(testCasePanelBuilder.getUpperPanel(), BorderLayout.NORTH)
testCasePanel.add(testCasePanelBuilder.getMiddlePanel(), BorderLayout.CENTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.intellij.util.ui.JBUI
import org.jetbrains.research.testspark.bundles.llm.LLMMessagesBundle
import org.jetbrains.research.testspark.bundles.plugin.PluginLabelsBundle
import org.jetbrains.research.testspark.bundles.plugin.PluginMessagesBundle
import org.jetbrains.research.testspark.core.data.JUnitVersion
import org.jetbrains.research.testspark.core.data.Report
import org.jetbrains.research.testspark.core.data.TestCase
import org.jetbrains.research.testspark.core.generation.llm.getClassWithTestCaseName
Expand All @@ -42,6 +43,7 @@ import org.jetbrains.research.testspark.helpers.LLMHelper
import org.jetbrains.research.testspark.services.LLMSettingsService
import org.jetbrains.research.testspark.settings.llm.LLMSettingsState
import org.jetbrains.research.testspark.testmanager.TestAnalyzerFactory
import org.jetbrains.research.testspark.tools.GenerationTool
import org.jetbrains.research.testspark.tools.TestProcessor
import org.jetbrains.research.testspark.tools.TestsExecutionResultManager
import org.jetbrains.research.testspark.tools.ToolUtils
Expand All @@ -64,8 +66,6 @@ import javax.swing.ScrollPaneConstants
import javax.swing.SwingUtilities
import javax.swing.border.Border
import javax.swing.border.MatteBorder
import org.jetbrains.research.testspark.core.data.JUnitVersion
import org.jetbrains.research.testspark.tools.GenerationTool

class TestCasePanelBuilder(
private val project: Project,
Expand Down Expand Up @@ -574,7 +574,7 @@ class TestCasePanelBuilder(
uiContext.projectContext,
testCompiler,
testsExecutionResultManager,
junitVersion
junitVersion,
)

testCase.coveredLines = newTestCase.coveredLines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package org.jetbrains.research.testspark.tools
*/
enum class GenerationTool(val toolId: String) {
EvoSuite("EvoSuite"),
LLM("LLM");
LLM("LLM"),
;

companion object {
fun from(findValue: String): GenerationTool = entries.first { it.toolId == findValue }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class TestProcessor(
projectContext: ProjectContext,
testCompiler: TestCompiler,
testsExecutionResultManager: TestsExecutionResultManager,
junitVersion: JUnitVersion
junitVersion: JUnitVersion,
): TestCase {
// get buildPath
var buildPath: String = ProjectRootManager.getInstance(project).contentRoots.first().path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class EvoSuite(override val name: String = "EvoSuite") : Tool {
testGenerationController,
testSparkDisplayManager,
testsExecutionResultManager,
name
name,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class Llm(override val name: String = "LLM") : Tool {
testGenerationController,
testSparkDisplayManager,
testsExecutionResultManager,
name
name,
)

val manager = LLMProcessManager(
Expand Down

0 comments on commit 0c4ec05

Please sign in to comment.