More reliable testing of keyword completion (introduced directive "NOTHING_ELSE" instead of "NUMBER")

This commit is contained in:
Valentin Kipyatkov
2015-05-14 17:46:56 +03:00
parent 5807d03a52
commit db40f1ee5a
75 changed files with 113 additions and 80 deletions
@@ -16,6 +16,6 @@ class Derived: Base<String>() {
// INVOCATION_COUNT: 1
// EXIST: funInBase, funWithOverride, funWithoutOverride
// NUMBER: 3
// NOTHING_ELSE: true
// RUNTIME_TYPE: Derived
@@ -20,6 +20,6 @@ class C: B() {
// INVOCATION_COUNT: 2
// EXIST: funA, funAp, funB, funBp, funC, funCp
// NUMBER: 6
// NOTHING_ELSE: true
// RUNTIME_TYPE: C
@@ -14,7 +14,7 @@ fun Base.funExtBase() { }
// INVOCATION_COUNT: 1
// EXIST: funExtBase, funExtDerived
// NUMBER: 2
// NOTHING_ELSE: true
// RUNTIME_TYPE: Derived
@@ -18,7 +18,7 @@ class Derived: Base() {
// INVOCATION_COUNT: 1
// EXIST: funInBase, funWithOverride, funWithoutOverride, funInDerived
// NUMBER: 4
// NOTHING_ELSE: true
// RUNTIME_TYPE: Derived
@@ -7,4 +7,4 @@ class Test {
}
// EXIST: util
// NUMBER: 1
// NOTHING_ELSE: true
@@ -8,4 +8,4 @@ fun foo() {
// EXIST: ext1
// EXIST: ext2
// NUMBER: 2
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun firstFun() {
// INVOCATION_COUNT: 1
// EXIST: Testing
// NUMBER: 1
// NOTHING_ELSE: true
@@ -15,4 +15,4 @@ fun g(a: A) {
// EXIST: foo
// EXIST: foo1
// NUMBER: 2
// NOTHING_ELSE: true
@@ -8,4 +8,4 @@ fun test() = small(paramFirst = param<caret>)
// EXIST: paramTest
// ABSENT: {"lookupString":"paramFirst","tailText":" Int","itemText":"paramFirst ="}
// ABSENT: paramSecond
// NUMBER: 1
// NOTHING_ELSE: true
@@ -7,4 +7,4 @@ fun test(p: Int) = foo(12, third = "", <caret>)
// ABSENT: first
// ABSENT: third
// EXIST: second
// NUMBER: 1
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun test() = small(param<caret>First = 12)
// EXIST: paramSecond
// EXIST: paramTest
// NUMBER: 3
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun firstFun() {
// INVOCATION_COUNT: 1
// EXIST: { lookupString:"toLinkedList", itemText:"toLinkedList", tailText:"() for Iterable<T> in kotlin" }
// NUMBER: 1
// NOTHING_ELSE: true
@@ -4,4 +4,4 @@ val x = InputStreamReader<caret>
// INVOCATION_COUNT: 2
// EXIST: { lookupString:"InputStreamReader", tailText:" (java.io)" }
// NUMBER: 1
// NOTHING_ELSE: true
@@ -2,4 +2,4 @@ val x = LinesSequence<caret>
// INVOCATION_COUNT: 2
// EXIST: { lookupString:"LinesSequence", tailText:" (kotlin.io)" }
// NUMBER: 1
// NOTHING_ELSE: true
@@ -12,4 +12,4 @@ fun firstFun() {
// EXIST: testingExpectedFunction
// ABSENT: testingUnexpectedFunction
// NUMBER: 2
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun firstFun() {
// EXIST: helloFunPreventAutoInsert
// EXIST: helloWithParams
// ABSENT: helloFake
// NUMBER: 3
// NOTHING_ELSE: true
@@ -4,4 +4,4 @@ class A : NotImported<caret>
// AUTOCOMPLETE_SETTING: true
// EXIST: NotImportedClass
// NUMBER: 1
// NOTHING_ELSE: true
@@ -6,4 +6,4 @@ fun f() {
// EXIST: extFun1
// EXIST: extFun2
// NUMBER: 2
// NOTHING_ELSE: true
@@ -1,9 +1,9 @@
// this test tests correct substitution equality checking for generic functions
import dependency.pair
import java.io.InputStreamReader
fun foo() {
1 pai<caret>
}
// EXIST: pair
// NUMBER: 1
// NOTHING_ELSE: true
@@ -11,4 +11,4 @@ class C {
// EXIST: helloProp
// EXIST: helloForC
// ABSENT: helloFake
// NUMBER: 4
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun firstFun(p: () -> Unit) {
// EXIST: helloAny
// ABSENT: helloFun3
// ABSENT: helloFun4
// NUMBER: 3
// NOTHING_ELSE: true
@@ -10,4 +10,4 @@ fun firstFun(p: String.() -> Unit) {
// ABSENT: helloFun4
// ABSENT: helloFun5
// EXIST: helloAny
// NUMBER: 3
// NOTHING_ELSE: true
@@ -6,4 +6,4 @@ fun firstFun(x: third.Dependency) {
// EXIST: helloFun
// EXIST: helloFunGeneric
// NUMBER: 2
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun firstFun() {
// EXIST: { lookupString: "helloProp2", attributes: "bold" }
// ABSENT: helloProp3
// ABSENT: helloProp4
// NUMBER: 2
// NOTHING_ELSE: true