Skip to content

Commit 27a1af8

Browse files
authored
Write test method name to the UtExecution for the Sariff needs (#1237)
Write generated test method name to the UtExecution for the Sariff generation needs
1 parent 50dc51b commit 27a1af8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,9 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
12541254
fun createTestMethod(executableId: ExecutableId, execution: UtExecution): CgTestMethod =
12551255
withTestMethodScope(execution) {
12561256
val testMethodName = nameGenerator.testMethodNameFor(executableId, execution.testMethodName)
1257+
if (execution.testMethodName == null) {
1258+
execution.testMethodName = testMethodName
1259+
}
12571260
// TODO: remove this line when SAT-1273 is completed
12581261
execution.displayName = execution.displayName?.let { "${executableId.name}: $it" }
12591262
testMethod(testMethodName, execution.displayName) {

0 commit comments

Comments
 (0)