Created module idea-test-framework and moved classes needed for idea tests there

Moved tests for completion and their test data into module idea-completion
This commit is contained in:
Valentin Kipyatkov
2015-04-13 18:11:53 +03:00
parent 63825c45dd
commit bb808b5620
1303 changed files with 1741 additions and 1733 deletions
@@ -0,0 +1,15 @@
class Some() {
public val testPublic = 12
protected val testProtected = 12
private val testPrivate = 12
val testPackage = 12
}
fun test() {
Some().<caret>
}
// INVOCATION_COUNT: 1
// EXIST: testPublic, testPackage
// ABSENT: testPrivate, testProtected
@@ -0,0 +1,13 @@
class Some() {
public val testPublic : Int = 12
protected val testProtected : Int = 12
private val testPrivate = 12
val testPackage = 12
}
fun test() {
Some().<caret>
}
// INVOCATION_COUNT: 2
// EXIST: testPublic, testProtected, testPrivate, testPackage
@@ -0,0 +1,16 @@
class Some() {
public val testPublic = 12
protected val testProtected = 12
private val testPrivate = 12
val testPackage = 12
}
class SomeSubclass : Some() {
fun test() {
<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: testPublic, testProtected, testPackage
// ABSENT: testPrivate
@@ -0,0 +1,15 @@
class Some() {
public val testPublic = 12
protected val testProtected = 12
private val testPrivate = 12
val testPackage = 12
}
class SomeSubclass : Some() {
fun test() {
<caret>
}
}
// INVOCATION_COUNT: 2
// EXIST: testPublic, testProtected, testPackage, testPrivate
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,12 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
{
<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,12 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
{
this.<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
<caret>
}
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test(a: A<Int>) {
a.<caret>
}
}
// INVOCATION_COUNT: 1
// ABSENT: bar, foo
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test(a: A<Int>) {
a.<caret>
}
}
// INVOCATION_COUNT: 2
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
this@A.<caret>
}
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
this.<caret>
}
}
}
// INVOCATION_COUNT: 1
// ABSENT: bar, foo