Moved test data into subfolders

This commit is contained in:
Valentin Kipyatkov
2015-05-21 14:12:58 +03:00
parent 6ddb208bb7
commit f8a4d9bf0b
86 changed files with 0 additions and 0 deletions
@@ -0,0 +1,14 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
fun newFun(){}
fun foo() {
<caret>oldFun(bar())
}
fun bar(): Int = 0
@@ -0,0 +1,15 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
fun newFun(){}
fun foo() {
bar()
<caret>newFun()
}
fun bar(): Int = 0
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
}
fun newFun(){}
fun foo() {
getC().<caret>oldFun()
}
fun getC(): C = C()
@@ -0,0 +1,17 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
}
fun newFun(){}
fun foo() {
getC()
<caret>newFun()
}
fun getC(): C = C()
@@ -0,0 +1,14 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
fun newFun(): Int = 0
fun foo(): Int {
return <caret>oldFun(bar())
}
fun bar(): Int = 0
@@ -0,0 +1,14 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
fun newFun(): Int = 0
fun foo(): Int {
return bar().let { newFun() }
}
fun bar(): Int = 0
@@ -0,0 +1,12 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
fun newFun(): Int = 0
fun foo(): Int = <caret>oldFun(bar())
fun bar(): Int? = 0
@@ -0,0 +1,12 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
fun newFun(): Int = 0
fun foo(): Int = bar().<caret>let { newFun() }
fun bar(): Int? = 0
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p2)'" "true"
@deprecated("", ReplaceWith("newFun(p2)"))
fun oldFun(p1: Int, p2: Int): Boolean {
return newFun(p2)
}
fun newFun(p: Int) = false
fun foo(list: List<Int>) {
list.filter { !<caret>oldFun(bar(), it) }
}
fun bar(): Int = 0
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p2)'" "true"
@deprecated("", ReplaceWith("newFun(p2)"))
fun oldFun(p1: Int, p2: Int): Boolean {
return newFun(p2)
}
fun newFun(p: Int) = false
fun foo(list: List<Int>) {
list.filter { !bar().let { p1 -> newFun(it) } }
}
fun bar(): Int = 0
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
}
fun newFun(){}
fun foo() {
getC()?.<caret>oldFun()
}
fun getC(): C? = null
@@ -0,0 +1,18 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
}
fun newFun(){}
fun foo() {
<caret>if (getC() != null) {
newFun()
}
}
fun getC(): C? = null
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
}
fun newFun(): Int = 0
fun foo(): Int? {
return getC()?.<caret>oldFun()
}
fun getC(): C? = null
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
}
fun newFun(): Int = 0
fun foo(): Int? {
return getC()?.<caret>let { newFun() }
}
fun getC(): C? = null
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
fun newFun(p1: Int, p2: Int){}
fun foo() {
<caret>oldFun(bar())
}
fun bar(): Int = 0
@@ -0,0 +1,15 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
fun newFun(p1: Int, p2: Int){}
fun foo() {
val p = bar()
<caret>newFun(p, p)
}
fun bar(): Int = 0
@@ -0,0 +1,15 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
fun C.newFun(c: C){}
fun foo() {
val bar = 0
getBar().<caret>oldFun()
}
fun getBar(): C = C()
@@ -0,0 +1,16 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
fun C.newFun(c: C){}
fun foo() {
val bar = 0
val bar1 = getBar()
bar1.<caret>newFun(bar1)
}
fun getBar(): C = C()
@@ -0,0 +1,13 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int): Int {
return newFun(p, p)
}
fun newFun(p1: Int, p2: Int): Int = 0
fun foo(): Int {
var v = 0
return <caret>oldFun(v++)
}
@@ -0,0 +1,13 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int): Int {
return newFun(p, p)
}
fun newFun(p1: Int, p2: Int): Int = 0
fun foo(): Int {
var v = 0
return v++.let { newFun(it, it) }
}
@@ -0,0 +1,16 @@
// "Replace with 'newFun(this, p)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this, p)"))
fun oldFun(p: Int){}
}
fun C.newFun(c: C, p: Int){}
val bar = 0
fun foo() {
getBar().<caret>oldFun(bar)
}
fun getBar(): C = C()
@@ -0,0 +1,17 @@
// "Replace with 'newFun(this, p)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this, p)"))
fun oldFun(p: Int){}
}
fun C.newFun(c: C, p: Int){}
val bar = 0
fun foo() {
val bar1 = getBar()
bar1.<caret>newFun(bar1, bar)
}
fun getBar(): C = C()
@@ -0,0 +1,16 @@
// "Replace with 'newFun(p, p)'" "true"
import java.util.*
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: List<String>) {
newFun(p, p)
}
fun newFun(p1: List<String>, p2: List<String>){}
fun foo() {
<caret>oldFun(bar())
}
fun <T> bar(): List<T> = ArrayList()
@@ -0,0 +1,17 @@
// "Replace with 'newFun(p, p)'" "true"
import java.util.*
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: List<String>) {
newFun(p, p)
}
fun newFun(p1: List<String>, p2: List<String>){}
fun foo() {
val p: List<String> = bar()
<caret>newFun(p, p)
}
fun <T> bar(): List<T> = ArrayList()
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int?): Int {
return newFun(p, p)
}
fun newFun(p1: Int?, p2: Int?): Int = 0
fun foo(): Int {
return <caret>oldFun(bar())
}
fun bar(): Int? = null
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int?): Int {
return newFun(p, p)
}
fun newFun(p1: Int?, p2: Int?): Int = 0
fun foo(): Int {
return bar().let { newFun(it, it) }
}
fun bar(): Int? = null
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
fun newFun(){}
fun foo() {
<caret>oldFun(O.x + 1)
}
object O {
var x = 0
}
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
fun newFun(){}
fun foo() {
<caret>newFun()
}
object O {
var x = 0
}
@@ -0,0 +1,16 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
fun newFun(p1: Int, p2: Int){}
fun foo(c: C) {
<caret>oldFun(c.bar)
}
class C {
var bar = 0
}
@@ -0,0 +1,16 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
fun newFun(p1: Int, p2: Int){}
fun foo(c: C) {
<caret>newFun(c.bar, c.bar)
}
class C {
var bar = 0
}
@@ -0,0 +1,12 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo() {
<caret>oldFun("x")
}
@@ -0,0 +1,12 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo() {
newFun("x", "x")
}
@@ -0,0 +1,12 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo(p: Int) {
<caret>oldFun("p=$p")
}
@@ -0,0 +1,13 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo(p: Int) {
val p1 = "p=$p"
<caret>newFun(p1, p1)
}
@@ -0,0 +1,14 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo(p: Int) {
<caret>oldFun("${p.bar()}")
}
fun Int.bar(): String = ""
@@ -0,0 +1,15 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
fun newFun(p1: String, p2: String){}
fun foo(p: Int) {
val p1 = "${p.bar()}"
<caret>newFun(p1, p1)
}
fun Int.bar(): String = ""