Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed instrumentation counter in IntelliJ verifier
- IntelliJ Engine version upgraded to 1.0.680 - added tests on verification error Fixes #212
- Loading branch information
Showing
10 changed files
with
396 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
src/functionalTest/templates/sources/verification/main/kotlin/FirstClasses.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package org.jetbrains.kover.test.functional.verification | ||
|
||
class FullyCovered { | ||
fun function0(i: Int): String { | ||
val j = i + 2 | ||
println("function0") | ||
return "result=$j" | ||
} | ||
|
||
fun function1(i: Int): String { | ||
val j = i + 2 | ||
println("function0") | ||
return "result=$j" | ||
} | ||
|
||
fun name(): String? { | ||
return this::class.simpleName | ||
} | ||
} | ||
|
||
class PartiallyCoveredFirst { | ||
fun function0(i: Int): String { | ||
val j = i + 2 | ||
if (i > 0) { | ||
println("GTZ") | ||
} else if (i == 0) { | ||
println("EZ") | ||
} else { | ||
println("LEZ") | ||
} | ||
println("function0") | ||
return "result=$j" | ||
} | ||
|
||
fun function1(i: Int): String { | ||
val j = i + 2 | ||
println("function1") | ||
return "result=$j" | ||
} | ||
|
||
fun name(): String? { | ||
return this::class.simpleName | ||
} | ||
} | ||
|
||
class PartiallyCoveredSecond { | ||
fun function0(i: Int): String { | ||
val j = i + 2 | ||
println("function0") | ||
return "result=$j" | ||
} | ||
|
||
fun function1(i: Int): String { | ||
val j = i + 2 | ||
println("function1") | ||
if (i > 0) { | ||
println("GTZ") | ||
} else if (i == 0) { | ||
println("EZ") | ||
} else { | ||
println("LEZ") | ||
} | ||
println("function1") | ||
return "result=$j" | ||
} | ||
|
||
fun name(): String? { | ||
return this::class.simpleName | ||
} | ||
} | ||
class Uncovered { | ||
fun function0(i: Int): String { | ||
val j = i + 2 | ||
println("function0") | ||
return "result=$j" | ||
} | ||
|
||
fun function1(i: Int): String { | ||
val j = i + 2 | ||
println("function1") | ||
if (i > 0) { | ||
println("GTZ") | ||
} else { | ||
println("LEZ") | ||
} | ||
return "result=$j" | ||
} | ||
|
||
fun name(): String? { | ||
return this::class.simpleName | ||
} | ||
} | ||
|
||
|
||
|
||
|
Oops, something went wrong.