Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed review comments
  • Loading branch information
amandelpie committed Oct 12, 2022
commit 0a95f295f03f41ccde58d90942f894c2d6f2b134
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package org.utbot.summary.comment.customtags.fuzzer

import org.utbot.summary.comment.EMPTY_STRING

/**
* Represents a set of plugin's custom JavaDoc tags.
*/
data class CommentWithCustomTagForTestProducedByFuzzer(
val classUnderTest: String = "",
val methodUnderTest: String = "",
val expectedResult: String = "",
val actualResult: String = "",
var returnsFrom: String = "",
var throwsException: String = ""
val classUnderTest: String = EMPTY_STRING,
val methodUnderTest: String = EMPTY_STRING,
val expectedResult: String = EMPTY_STRING,
val actualResult: String = EMPTY_STRING,
var returnsFrom: String = EMPTY_STRING,
var throwsException: String = EMPTY_STRING
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class CommentWithCustomTagForTestProducedByFuzzerBuilder(
fun buildDocStatements(): List<DocStatement> {
val comment = buildCustomJavaDocComment()
val docStatementList =
CustomJavaDocTagProvider().getPluginCustomTags().mapNotNull { it.generateDocStatementForTestProducedByFuzzer(comment) }
CustomJavaDocTagProvider().getPluginCustomTags()
.mapNotNull { it.generateDocStatementForTestProducedByFuzzer(comment) }
return listOf(DocCustomTagStatement(docStatementList))
}

Expand All @@ -33,7 +34,7 @@ class CommentWithCustomTagForTestProducedByFuzzerBuilder(
val className = methodDescription.className
val methodName = methodDescription.compilableName

return if(packageName!=null && className!=null && methodName!=null) {
return if (packageName != null && className != null && methodName != null) {
val fullClassName = "$packageName.$className"

val methodReference = getMethodReferenceForFuzzingTest(
Expand Down