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

Commit 7ad3155

Browse files
committed
fix after rebasing
1 parent 58cb246 commit 7ad3155

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎utbot-framework/src/test/kotlin/org/utbot/examples/UtValueTestCaseChecker.kt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import org.utbot.framework.coverage.toAtLeast
3131
import org.utbot.framework.plugin.api.CodegenLanguage
3232
import org.utbot.framework.plugin.api.DocClassLinkStmt
3333
import org.utbot.framework.plugin.api.DocCodeStmt
34+
import org.utbot.framework.plugin.api.DocCustomTagStatement
3435
import org.utbot.framework.plugin.api.DocMethodLinkStmt
3536
import org.utbot.framework.plugin.api.DocPreTagStatement
3637
import org.utbot.framework.plugin.api.DocRegularStmt
@@ -60,7 +61,6 @@ import org.utbot.framework.plugin.api.util.kClass
6061
import org.utbot.framework.plugin.api.util.withUtContext
6162
import org.utbot.framework.util.Conflict
6263
import org.utbot.framework.util.toValueTestCase
63-
import org.utbot.summary.UtSummarySettings
6464
import org.utbot.summary.summarize
6565
import java.io.File
6666
import java.nio.file.Path
@@ -2747,6 +2747,7 @@ private fun flattenDocStatements(summary: List<DocStatement>): List<DocStatement
27472747
is DocMethodLinkStmt -> flatten.add(s)
27482748
is DocCodeStmt -> flatten.add(s)
27492749
is DocRegularStmt -> flatten.add(s)
2750+
is DocCustomTagStatement -> flatten.add(s)
27502751
}
27512752
}
27522753
return flatten

‎utbot-summary/src/main/kotlin/org/utbot/summary/comment/SimpleCommentBuilder.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ open class SimpleCommentBuilder(
352352
* In case when an enclosing class in nested, we need to replace '$' with '.'
353353
* to render the reference.
354354
*/
355-
protectedfun getMethodReference(className: String, methodName: String, methodParameterTypes: List<Type>): String {
355+
fun getMethodReference(className: String, methodName: String, methodParameterTypes: List<Type>): String {
356356
val prettyClassName: String = className.replace("$", ".")
357357

358358
return if (methodParameterTypes.isEmpty()) {

‎utbot-summary/src/test/kotlin/org/utbot/summary/comment/SimpleCommentBuilderTest.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SimpleCommentBuilderTest {
6767
@Test
6868
fun `builds inline link for method`() {
6969
val commentBuilder = SimpleCommentBuilder(traceTag, sootToAst)
70-
val methodReference = commentBuilder.invokeDescription("org.utbot.ClassName", "methodName", listOf())
70+
val methodReference = commentBuilder.getMethodReference("org.utbot.ClassName", "methodName", listOf())
7171
val expectedMethodReference = "{@link org.utbot.ClassName#methodName()}"
7272
assertEquals(methodReference, expectedMethodReference)
7373
}
@@ -76,7 +76,7 @@ class SimpleCommentBuilderTest {
7676
fun `builds inline link for method in nested class`() {
7777
val commentBuilder = SimpleCommentBuilder(traceTag, sootToAst)
7878
val methodReference =
79-
commentBuilder.invokeDescription("org.utbot.ClassName\$NestedClassName", "methodName", listOf())
79+
commentBuilder.getMethodReference("org.utbot.ClassName\$NestedClassName", "methodName", listOf())
8080
val expectedMethodReference = "{@link org.utbot.ClassName.NestedClassName#methodName()}"
8181
assertEquals(methodReference, expectedMethodReference)
8282
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /