File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
utbot-framework/src/test/kotlin/org/utbot/examples
main/kotlin/org/utbot/summary/comment Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import org.utbot.framework.coverage.toAtLeast
31
31
import org.utbot.framework.plugin.api.CodegenLanguage
32
32
import org.utbot.framework.plugin.api.DocClassLinkStmt
33
33
import org.utbot.framework.plugin.api.DocCodeStmt
34
+ import org.utbot.framework.plugin.api.DocCustomTagStatement
34
35
import org.utbot.framework.plugin.api.DocMethodLinkStmt
35
36
import org.utbot.framework.plugin.api.DocPreTagStatement
36
37
import org.utbot.framework.plugin.api.DocRegularStmt
@@ -60,7 +61,6 @@ import org.utbot.framework.plugin.api.util.kClass
60
61
import org.utbot.framework.plugin.api.util.withUtContext
61
62
import org.utbot.framework.util.Conflict
62
63
import org.utbot.framework.util.toValueTestCase
63
- import org.utbot.summary.UtSummarySettings
64
64
import org.utbot.summary.summarize
65
65
import java.io.File
66
66
import java.nio.file.Path
@@ -2747,6 +2747,7 @@ private fun flattenDocStatements(summary: List<DocStatement>): List<DocStatement
2747
2747
is DocMethodLinkStmt -> flatten.add(s)
2748
2748
is DocCodeStmt -> flatten.add(s)
2749
2749
is DocRegularStmt -> flatten.add(s)
2750
+ is DocCustomTagStatement -> flatten.add(s)
2750
2751
}
2751
2752
}
2752
2753
return flatten
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ open class SimpleCommentBuilder(
352
352
* In case when an enclosing class in nested, we need to replace '$' with '.'
353
353
* to render the reference.
354
354
*/
355
- protected fun getMethodReference (className : String , methodName : String , methodParameterTypes : List <Type >): String {
355
+ fun getMethodReference (className : String , methodName : String , methodParameterTypes : List <Type >): String {
356
356
val prettyClassName: String = className.replace(" $" , " ." )
357
357
358
358
return if (methodParameterTypes.isEmpty()) {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class SimpleCommentBuilderTest {
67
67
@Test
68
68
fun `builds inline link for method` () {
69
69
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 ())
71
71
val expectedMethodReference = " {@link org.utbot.ClassName#methodName()}"
72
72
assertEquals(methodReference, expectedMethodReference)
73
73
}
@@ -76,7 +76,7 @@ class SimpleCommentBuilderTest {
76
76
fun `builds inline link for method in nested class` () {
77
77
val commentBuilder = SimpleCommentBuilder (traceTag, sootToAst)
78
78
val methodReference =
79
- commentBuilder.invokeDescription (" org.utbot.ClassName\$ NestedClassName" , " methodName" , listOf ())
79
+ commentBuilder.getMethodReference (" org.utbot.ClassName\$ NestedClassName" , " methodName" , listOf ())
80
80
val expectedMethodReference = " {@link org.utbot.ClassName.NestedClassName#methodName()}"
81
81
assertEquals(methodReference, expectedMethodReference)
82
82
}
You can’t perform that action at this time.
0 commit comments