From 99b7d3fe58274f1c691af557b399a21a4479c7e3 Mon Sep 17 00:00:00 2001 From: Maxim Pelevin Date: Wed, 1 Jun 2022 16:58:46 +0300 Subject: [PATCH] Fuzzer generates uncompilable test methods in Contest Estimator #111 --- .../src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt b/utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt index b407e72e4d..8d081900c6 100644 --- a/utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt +++ b/utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt @@ -584,7 +584,7 @@ class UtBotSymbolicEngine( path = mutableListOf(), fullPath = emptyList(), coverage = concreteExecutionResult.coverage, - testMethodName = "test${methodUnderTest.callable.name.capitalize()}ByFuzzer${index}" + testMethodName = if (methodUnderTest.isMethod) "test${methodUnderTest.callable.name.capitalize()}ByFuzzer${index}" else null ) ) } catch (e: CancellationException) {