Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc010f6

Browse files
author
Ivan Volkov
committed
renamed isSyntheticMethod to isKnownSyntheticMethod
1 parentefea2e1 commitdc010f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎utbot-cli/src/main/kotlin/org/utbot/cli/GenerateTestsCommand.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import kotlin.reflect.KClass
2323
importmu.KotlinLogging
2424
importorg.utbot.common.filterWhen
2525
importorg.utbot.framework.UtSettings
26-
importorg.utbot.framework.util.isSyntheticMethod
26+
importorg.utbot.framework.util.isKnownSyntheticMethod
2727

2828

2929
privateval logger=KotlinLogging.logger {}
@@ -95,7 +95,7 @@ class GenerateTestsCommand :
9595

9696
val classUnderTest:KClass<*>= loadClassBySpecifiedFqn(targetClassFqn)
9797
val targetMethods= classUnderTest.targetMethods()
98-
.filterWhen(UtSettings.skipTestGenerationForSyntheticMethods) {!isSyntheticMethod(it) }
98+
.filterWhen(UtSettings.skipTestGenerationForSyntheticMethods) {!isKnownSyntheticMethod(it) }
9999
initializeEngine(workingDirectory)
100100

101101
if (targetMethods.isEmpty()) {

‎utbot-framework/src/main/kotlin/org/utbot/framework/util/SyntheticMethods.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package org.utbot.framework.util
33
importorg.utbot.engine.displayName
44
importorg.utbot.framework.plugin.api.UtMethod
55

6-
funisSyntheticMethod(method:UtMethod<*>):Boolean=
6+
funisKnownSyntheticMethod(method:UtMethod<*>):Boolean=
77
if (method.clazz.java.isEnum)
88
method.displayName.substringBefore('(')inKnownSyntheticMethodNames.enumSyntheticMethodNames
99
else

‎utbot-junit-contest/src/main/kotlin/org/utbot/contest/Contest.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import kotlinx.coroutines.yield
6767
importmu.KotlinLogging
6868
importorg.apache.commons.io.FileUtils
6969
importorg.utbot.common.filterWhen
70-
importorg.utbot.framework.util.isSyntheticMethod
70+
importorg.utbot.framework.util.isKnownSyntheticMethod
7171

7272
internalconstval junitVersion=4
7373
privateval logger=KotlinLogging.logger {}
@@ -472,7 +472,7 @@ private fun prepareClass(kotlinClass: KClass<*>, methodNameFilter: String?): Lis
472472
.map {UtMethod(it.first, kotlinClass) }
473473
.filter { methodNameFilter?.equals(it.callable.name)?:true }
474474
.filterNot { it.isConstructor&& (it.clazz.isAbstract|| it.clazz.java.isEnum) }
475-
.filterWhen(UtSettings.skipTestGenerationForSyntheticMethods) {!isSyntheticMethod(it) }
475+
.filterWhen(UtSettings.skipTestGenerationForSyntheticMethods) {!isKnownSyntheticMethod(it) }
476476
.toList()
477477

478478
returnif (kotlinClass.nestedClasses.isEmpty()) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp