Skip to content

Commit c9c1a0e

Browse files
committed
Fix code style
1 parent cf67b46 commit c9c1a0e

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ abstract class PythonTestGenerationProcessor {
5555
)
5656
}
5757

58-
59-
6058
fun testGenerate(mypyStorage: MypyInfoBuild): List<PythonTestSet> {
6159
val startTime = System.currentTimeMillis()
6260

utbot-python/src/main/kotlin/org/utbot/python/evaluation/coverage/CoverageApi.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ fun String.toPythonCoverageMode(): PythonCoverageMode? {
2727
data class PyInstruction(
2828
val lineNumber: Int,
2929
val offset: Long,
30-
val depth: Int = 0,
30+
val depth: Int,
3131
) {
3232
override fun toString(): String = listOf(lineNumber, offset, depth).joinToString(":")
3333

3434
val id: Long = (offset to depth.toLong()).toCoverageId()
3535

36-
constructor(lineNumber: Int) : this(lineNumber, lineNumber.toLong())
36+
constructor(lineNumber: Int) : this(lineNumber, lineNumber.toLong(), 0)
3737
constructor(lineNumber: Int, id: Long) : this(lineNumber, id.toPair().first, id.toPair().second.toInt())
3838
}
3939

@@ -49,7 +49,7 @@ fun String.toPyInstruction(): PyInstruction? {
4949
2 -> {
5050
val line = data[0].toInt()
5151
val offset = data[1].toLong()
52-
return PyInstruction(line, offset)
52+
return PyInstruction(line, offset, 0)
5353
}
5454
1 -> {
5555
val line = data[0].toInt()

0 commit comments

Comments
 (0)