From 12a685f3678c566d93701755895a4764b4503d4e Mon Sep 17 00:00:00 2001 From: Vyacheslav Tamarin Date: Sun, 26 Feb 2023 22:25:33 +0300 Subject: [PATCH 1/2] Added region name FUZZING --- .../org/utbot/python/PythonTestGenerationProcessor.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt b/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt index 33372d194a..93063055ef 100644 --- a/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt +++ b/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt @@ -8,6 +8,7 @@ import org.utbot.python.framework.codegen.model.PythonUserImport import org.utbot.framework.codegen.domain.TestFramework import org.utbot.framework.codegen.domain.models.CgMethodTestSet import org.utbot.framework.plugin.api.ExecutableId +import org.utbot.framework.plugin.api.UtClusterInfo import org.utbot.framework.plugin.api.UtExecutionSuccess import org.utbot.framework.plugin.api.util.UtContext import org.utbot.framework.plugin.api.util.withUtContext @@ -198,9 +199,12 @@ object PythonTestGenerationProcessor { ) val testCode = codegen.pythonGenerateAsStringWithTestReport( notEmptyTests.map { testSet -> + val intRange = testSet.executions.indices + val clusterInfo = listOf(Pair(UtClusterInfo("FUZZING"), intRange)) CgMethodTestSet( executableId = methodIds[testSet.method] as ExecutableId, - executions = testSet.executions + executions = testSet.executions, + clustersInfo = clusterInfo, ) }, allImports From 9482240bd86b1ced6cfadf5b5dc8087ca30e994e Mon Sep 17 00:00:00 2001 From: Vyacheslav Tamarin Date: Mon, 27 Feb 2023 11:05:56 +0300 Subject: [PATCH 2/2] Change fuzzing region title --- .../kotlin/org/utbot/python/PythonTestGenerationProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt b/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt index f44c475704..46f4a7433c 100644 --- a/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt +++ b/utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt @@ -202,7 +202,7 @@ object PythonTestGenerationProcessor { val testCode = codegen.pythonGenerateAsStringWithTestReport( notEmptyTests.map { testSet -> val intRange = testSet.executions.indices - val clusterInfo = listOf(Pair(UtClusterInfo("FUZZING"), intRange)) + val clusterInfo = listOf(Pair(UtClusterInfo("FUZZER"), intRange)) CgMethodTestSet( executableId = methodIds[testSet.method] as ExecutableId, executions = testSet.executions, @@ -303,4 +303,4 @@ object PythonTestGenerationProcessor { } else { paths } -} \ No newline at end of file +}