Groupped tests by folders

This commit is contained in:
Valentin Kipyatkov
2016-08-18 20:49:28 +03:00
parent d0f6e25783
commit 2d875e516e
392 changed files with 2400 additions and 2148 deletions
+12
View File
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var count = 0
<caret>for (s in list) {
if (s.isNotBlank()) {
count++
}
}
return count
}
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
val <caret>count = list.count { it.isNotBlank() }
return count
}
+10
View File
@@ -0,0 +1,10 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count()'"
// IS_APPLICABLE_2: false
fun foo(list: Iterable<String>): Int {
var count = 0
<caret>for (s in list) {
count++
}
return count
}
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count()'"
// IS_APPLICABLE_2: false
fun foo(list: Iterable<String>): Int {
val <caret>count = list.count()
return count
}
+12
View File
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Long {
var count = 0L
<caret>for (s in list) {
if (s.length > 10) {
count++
}
}
return count
}
@@ -0,0 +1,14 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var count = bar()
<caret>for (s in list) {
if (s.isNotBlank()) {
count++
}
}
return count
}
fun bar(): Int = 0
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
val <caret>count = bar() + list.count { it.isNotBlank() }
return count
}
fun bar(): Int = 0
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var count = 1
<caret>for (s in list) {
if (s.isNotBlank()) {
count++
}
}
return count
}
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
val <caret>count = 1 + list.count { it.isNotBlank() }
return count
}
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var count = 0
<caret>for (s in list) {
if (s.isNotBlank()) {
++count
}
}
return count
}
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
val <caret>count = list.count { it.isNotBlank() }
return count
}
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Int {
var count = 0
<caret>for (s in list) {
if (s.length > count) {
count++
}
}
return count
}