Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update KotlinControlStructuresTarget for Kotlin 1.5 #1180

Merged
merged 1 commit into from May 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -72,15 +72,15 @@ object KotlinControlStructuresTarget {

private fun missedForBlock() {

for (j in 0..-1) { // assertPartlyCovered(1, 1)
for (j in i2()..i1()) { // assertPartlyCovered(3, 1)
nop() // assertNotCovered()
}

}

private fun executedForBlock() {

for (j in 0..0) { // assertFullyCovered(0, 2)
for (j in i1()..i2()) { // assertFullyCovered(1, 3)
nop() // assertFullyCovered()
}

Expand Down Expand Up @@ -125,7 +125,7 @@ object KotlinControlStructuresTarget {

private fun continueStatement() {

for (j in 0..0) {
for (j in i1()..i2()) {
if (t()) {
continue // assertFullyCovered()
}
Expand Down