File tree Expand file tree Collapse file tree
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util
utbot-framework/src/main/kotlin/org/utbot/framework
codegen/model/constructor/tree
utbot-summary/src/main/kotlin/org/utbot/summary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,18 +406,18 @@ val Constructor<*>.executableId: ConstructorId
406406 return constructorId(classId, * arguments)
407407 }
408408
409- val ExecutableId .displayName : String
409+ val ExecutableId .humanReadableName : String
410410 get() {
411411 val executableName = this .name
412412 val parameters = this .parameters.joinToString(separator = " , " ) { it.canonicalName }
413413 return " $executableName ($parameters )"
414414 }
415415
416416val Constructor <* >.displayName: String
417- get() = executableId.displayName
417+ get() = executableId.humanReadableName
418418
419419val Method .displayName: String
420- get() = executableId.displayName
420+ get() = executableId.humanReadableName
421421
422422val KCallable <* >.declaringClazz: Class <* >
423423 get() = when (this ) {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import org.utbot.framework.plugin.api.MethodId
3030import org.utbot.framework.plugin.api.UtMethodTestSet
3131import org.utbot.framework.codegen.model.constructor.TestClassModel
3232import org.utbot.framework.plugin.api.util.description
33- import org.utbot.framework.plugin.api.util.displayName
33+ import org.utbot.framework.plugin.api.util.humanReadableName
3434import org.utbot.framework.plugin.api.util.kClass
3535import kotlin.reflect.KClass
3636
@@ -194,7 +194,7 @@ internal class CgTestClassConstructor(val context: CgContext) :
194194 )
195195
196196 regions + = CgSimpleRegion (
197- " Parameterized test for method ${methodUnderTest.displayName } " ,
197+ " Parameterized test for method ${methodUnderTest.humanReadableName } " ,
198198 listOf (parameterizedTestMethod),
199199 )
200200 }.onFailure { error -> processFailure(testSet, error) }
Original file line number Diff line number Diff line change 11package org.utbot.framework.util
22
33import org.utbot.framework.plugin.api.ExecutableId
4- import org.utbot.framework.plugin.api.util.displayName
4+ import org.utbot.framework.plugin.api.util.humanReadableName
55import org.utbot.framework.plugin.api.util.isEnum
66
77fun isKnownSyntheticMethod (method : ExecutableId ): Boolean =
88 if (method.classId.isEnum)
9- method.displayName .substringBefore(' (' ) in KnownSyntheticMethodNames .enumSyntheticMethodNames
9+ method.humanReadableName .substringBefore(' (' ) in KnownSyntheticMethodNames .enumSyntheticMethodNames
1010 else
1111 false
1212
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ import java.io.File
2323import java.nio.file.Path
2424import java.nio.file.Paths
2525import mu.KotlinLogging
26+ import org.utbot.framework.plugin.api.UtConcreteExecutionFailure
27+ import org.utbot.framework.plugin.api.UtExecutionSuccess
28+ import org.utbot.framework.plugin.api.UtExplicitlyThrownException
29+ import org.utbot.framework.plugin.api.UtImplicitlyThrownException
30+ import org.utbot.framework.plugin.api.UtOverflowFailure
31+ import org.utbot.framework.plugin.api.UtSandboxFailure
32+ import org.utbot.framework.plugin.api.UtTimeoutException
33+ import org.utbot.framework.plugin.api.util.humanReadableName
2634import org.utbot.framework.plugin.api.util.jClass
2735import org.utbot.fuzzer.FuzzedMethodDescription
2836import org.utbot.fuzzer.FuzzedValue
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import org.utbot.framework.plugin.api.UtOverflowFailure
1111import org.utbot.framework.plugin.api.UtMethodTestSet
1212import org.utbot.framework.plugin.api.UtSandboxFailure
1313import org.utbot.framework.plugin.api.UtTimeoutException
14- import org.utbot.framework.plugin.api.util.displayName
14+ import org.utbot.framework.plugin.api.util.humanReadableName
1515import org.utbot.framework.plugin.api.util.isCheckedException
1616import org.utbot.summary.UtSummarySettings.MIN_NUMBER_OF_EXECUTIONS_FOR_CLUSTERING
1717import org.utbot.summary.clustering.MatrixUniqueness
You can’t perform that action at this time.
0 commit comments