File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework
codegen/model/constructor/tree
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util
utbot-summary/src/main/kotlin/org/utbot/summary Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -406,18 +406,18 @@ val Constructor<*>.executableId: ConstructorId
406
406
return constructorId(classId, * arguments)
407
407
}
408
408
409
- val ExecutableId .displayName : String
409
+ val ExecutableId .humanReadableName : String
410
410
get() {
411
411
val executableName = this .name
412
412
val parameters = this .parameters.joinToString(separator = " , " ) { it.canonicalName }
413
413
return " $executableName ($parameters )"
414
414
}
415
415
416
416
val Constructor <* >.displayName: String
417
- get() = executableId.displayName
417
+ get() = executableId.humanReadableName
418
418
419
419
val Method .displayName: String
420
- get() = executableId.displayName
420
+ get() = executableId.humanReadableName
421
421
422
422
val KCallable <* >.declaringClazz: Class <* >
423
423
get() = when (this ) {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import org.utbot.framework.plugin.api.MethodId
30
30
import org.utbot.framework.plugin.api.UtMethodTestSet
31
31
import org.utbot.framework.codegen.model.constructor.TestClassModel
32
32
import 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
34
34
import org.utbot.framework.plugin.api.util.kClass
35
35
import kotlin.reflect.KClass
36
36
@@ -194,7 +194,7 @@ internal class CgTestClassConstructor(val context: CgContext) :
194
194
)
195
195
196
196
regions + = CgSimpleRegion (
197
- " Parameterized test for method ${methodUnderTest.displayName } " ,
197
+ " Parameterized test for method ${methodUnderTest.humanReadableName } " ,
198
198
listOf (parameterizedTestMethod),
199
199
)
200
200
}.onFailure { error -> processFailure(testSet, error) }
Original file line number Diff line number Diff line change 1
1
package org.utbot.framework.util
2
2
3
3
import org.utbot.framework.plugin.api.ExecutableId
4
- import org.utbot.framework.plugin.api.util.displayName
4
+ import org.utbot.framework.plugin.api.util.humanReadableName
5
5
import org.utbot.framework.plugin.api.util.isEnum
6
6
7
7
fun isKnownSyntheticMethod (method : ExecutableId ): Boolean =
8
8
if (method.classId.isEnum)
9
- method.displayName .substringBefore(' (' ) in KnownSyntheticMethodNames .enumSyntheticMethodNames
9
+ method.humanReadableName .substringBefore(' (' ) in KnownSyntheticMethodNames .enumSyntheticMethodNames
10
10
else
11
11
false
12
12
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ import java.io.File
23
23
import java.nio.file.Path
24
24
import java.nio.file.Paths
25
25
import 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
26
34
import org.utbot.framework.plugin.api.util.jClass
27
35
import org.utbot.fuzzer.FuzzedMethodDescription
28
36
import 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
11
11
import org.utbot.framework.plugin.api.UtMethodTestSet
12
12
import org.utbot.framework.plugin.api.UtSandboxFailure
13
13
import org.utbot.framework.plugin.api.UtTimeoutException
14
- import org.utbot.framework.plugin.api.util.displayName
14
+ import org.utbot.framework.plugin.api.util.humanReadableName
15
15
import org.utbot.framework.plugin.api.util.isCheckedException
16
16
import org.utbot.summary.UtSummarySettings.MIN_NUMBER_OF_EXECUTIONS_FOR_CLUSTERING
17
17
import org.utbot.summary.clustering.MatrixUniqueness
You can’t perform that action at this time.
0 commit comments