Skip to content

Commit

Permalink
feat: generate Javadoc comments for Report via AI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Artiukhov committed Sep 27, 2024
1 parent 193dc1a commit 8e99071
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
package org.jetbrains.research.testspark.core.data

/**
* Storage of generated tests. Implemented on the basis of org.evosuite.utils.CompactReport structure.
* Stores generated test cases and their coverage.
* Implemented on the basis of `org.evosuite.utils.CompactReport` structure.
*
* `Report`'s member fields were created based on the fields in
* `org.evosuite.utils.CompactReport` for easier transformation.
*/
open class Report {
// Fields were created based on the fields in org.evosuite.utils.CompactReport for easier transformation
var UUT: String = "" // Unit Under Test
/**
* Unit Under Test. This variable stores the name of the class or component that is being tested.
*/
var UUT: String = ""
var allCoveredLines: Set<Int> = setOf()
var allUncoveredLines: Set<Int> = setOf()
var testCaseList: HashMap<Int, TestCase> = hashMapOf()

/**
* AllCoveredLines update
* Calculates the normalized report by updating the set of all covered lines.
*
* @return The normalized report.
*/
fun normalized(): Report {
allCoveredLines = testCaseList.values.map { it.coveredLines }.flatten().toSet()
Expand Down

0 comments on commit 8e99071

Please sign in to comment.