Mute failing AutoImportQuickFix tests

This commit is contained in:
Roman Golyshev
2021-05-11 18:28:02 +03:00
committed by Space
parent 03a1439cc0
commit 4adb291a12
83 changed files with 162 additions and 59 deletions
@@ -9,4 +9,5 @@ import another.topVal
fun use() { fun use() {
topVal<selection></selection>() topVal<selection></selection>()
} }
/* IGNORE_FIR */
@@ -8,4 +8,5 @@ import another.topVal
fun use() { fun use() {
topVal<caret>() topVal<caret>()
} }
/* IGNORE_FIR */
@@ -7,3 +7,5 @@ import java.util.Date
fun foo(d: Date<caret>) { fun foo(d: Date<caret>) {
} }
/* IGNORE_FIR */
@@ -6,3 +6,5 @@ import dependency.*
fun foo(d: Date<caret>) { fun foo(d: Date<caret>) {
} }
/* IGNORE_FIR */
@@ -6,3 +6,5 @@ import dependency2.YYY
fun foo(x: XXX<caret>) { fun foo(x: XXX<caret>) {
} }
/* IGNORE_FIR */
@@ -5,3 +5,5 @@ import dependency2.YYY
fun foo(x: XXX<caret>) { fun foo(x: XXX<caret>) {
} }
/* IGNORE_FIR */
@@ -17,3 +17,5 @@ class X {
foo(<selection><caret></selection>p, ) foo(<selection><caret></selection>p, )
} }
} }
/* IGNORE_FIR */
@@ -15,3 +15,5 @@ class X {
foo(<caret>p, ) foo(<caret>p, )
} }
} }
/* IGNORE_FIR */
@@ -3,3 +3,5 @@ import dependency.extensionFun
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: extensionFun // ERROR: Unresolved reference: extensionFun
val v = String::extensionFun<caret> val v = String::extensionFun<caret>
/* IGNORE_FIR */
@@ -1,3 +1,5 @@
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: extensionFun // ERROR: Unresolved reference: extensionFun
val v = String::extensionFun<caret> val v = String::extensionFun<caret>
/* IGNORE_FIR */
@@ -3,3 +3,5 @@ import dependency.extensionFun
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: extensionFun // ERROR: Unresolved reference: extensionFun
val v = "a"::extensionFun<caret> val v = "a"::extensionFun<caret>
/* IGNORE_FIR */
@@ -1,3 +1,5 @@
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: extensionFun // ERROR: Unresolved reference: extensionFun
val v = "a"::extensionFun<caret> val v = "a"::extensionFun<caret>
/* IGNORE_FIR */
@@ -3,3 +3,5 @@ import dependency.topLevelFun
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: topLevelFun // ERROR: Unresolved reference: topLevelFun
val v = ::topLevelFun<caret> val v = ::topLevelFun<caret>
/* IGNORE_FIR */
@@ -1,3 +1,5 @@
// "Import" "true" // "Import" "true"
// ERROR: Unresolved reference: topLevelFun // ERROR: Unresolved reference: topLevelFun
val v = ::topLevelFun<caret> val v = ::topLevelFun<caret>
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import p2.receiveSomeCtor
fun a() { fun a() {
receiveSomeCtor(::Some<caret>) receiveSomeCtor(::Some<caret>)
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import p2.receiveSomeCtor
fun a() { fun a() {
receiveSomeCtor(::Some<caret>) receiveSomeCtor(::Some<caret>)
} }
/* IGNORE_FIR */
@@ -10,3 +10,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h / 3 h / 3
} }
/* IGNORE_FIR */
@@ -8,3 +8,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h <caret>/ 3 h <caret>/ 3
} }
/* IGNORE_FIR */
+2 -1
View File
@@ -10,4 +10,5 @@ fun test() {
aaa<caret>() aaa<caret>()
} }
} }
} }
/* IGNORE_FIR */
@@ -8,4 +8,5 @@ fun test() {
aaa<caret>() aaa<caret>()
} }
} }
} }
/* IGNORE_FIR */
@@ -11,4 +11,5 @@ fun test() {
aaa<caret>() aaa<caret>()
} }
} }
} }
/* IGNORE_FIR */
@@ -9,4 +9,5 @@ fun test() {
aaa<caret>() aaa<caret>()
} }
} }
} }
/* IGNORE_FIR */
@@ -8,3 +8,5 @@ fun some() {
val str = "" val str = ""
str.someFun() str.someFun()
} }
/* IGNORE_FIR */
@@ -6,3 +6,5 @@ fun some() {
val str = "" val str = ""
str.<caret>someFun() str.<caret>someFun()
} }
/* IGNORE_FIR */
@@ -7,3 +7,5 @@ import test.data.someVal
fun some() { fun some() {
"".someVal "".someVal
} }
/* IGNORE_FIR */
@@ -5,3 +5,5 @@ package test
fun some() { fun some() {
"".<caret>someVal "".<caret>someVal
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import dep.ext
fun use() { fun use() {
val ta = A() val ta = A()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import dep.A
fun use() { fun use() {
val ta = A() val ta = A()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import dep.ext
fun use() { fun use() {
val ta = TA1() val ta = TA1()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import dep.TA1
fun use() { fun use() {
val ta = TA1() val ta = TA1()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -4,4 +4,5 @@
import editor.completion.apx.ImportedClass as Class2 import editor.completion.apx.ImportedClass as Class2
fun context() { fun context() {
val c: Class2 val c: Class2
} }
/* IGNORE_FIR */
@@ -4,4 +4,5 @@
import editor.completion.apx.ImportedClass as Class2 import editor.completion.apx.ImportedClass as Class2
fun context() { fun context() {
val c: <caret>ImportedClass val c: <caret>ImportedClass
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.ImportedClass as Class2
fun context() { fun context() {
class Class2 class Class2
val c: editor.completion.apx.ImportedClass val c: editor.completion.apx.ImportedClass
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.ImportedClass as Class2
fun context() { fun context() {
class Class2 class Class2
val c: <caret>ImportedClass val c: <caret>ImportedClass
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.importedFunA as funA
fun context() { fun context() {
val funA = 42 val funA = 42
funA() funA()
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.importedFunA as funA
fun context() { fun context() {
val funA = 42 val funA = 42
<caret>importedFunA() <caret>importedFunA()
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.importedFunA as funA
fun context() { fun context() {
fun funA() {} fun funA() {}
editor.completion.apx.importedFunA() editor.completion.apx.importedFunA()
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import editor.completion.apx.importedFunA as funA
fun context() { fun context() {
fun funA() {} fun funA() {}
<caret>importedFunA() <caret>importedFunA()
} }
/* IGNORE_FIR */
@@ -4,4 +4,5 @@
import editor.completion.apx.importedValA as valA import editor.completion.apx.importedValA as valA
fun context() { fun context() {
valA() valA()
} }
/* IGNORE_FIR */
@@ -4,4 +4,5 @@
import editor.completion.apx.importedValA as valA import editor.completion.apx.importedValA as valA
fun context() { fun context() {
<caret>importedValA() <caret>importedValA()
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ package import
import base.MyDelegate import base.MyDelegate
import base.getValue import base.getValue
val myVal by MyDelegate { false } val myVal by MyDelegate { false }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ package import
import base.MyDelegate import base.MyDelegate
val myVal by <caret>MyDelegate { false } val myVal by <caret>MyDelegate { false }
/* IGNORE_FIR */
@@ -1,7 +1,6 @@
import importTrait.data.TestTrait import importTrait.data.TestTrait
// "Import" "true" // "Import" "true"
// FIR_IGNORE
// ERROR: Unresolved reference: TestTrait // ERROR: Unresolved reference: TestTrait
fun test() { fun test() {
@@ -1,5 +1,4 @@
// "Import" "true" // "Import" "true"
// FIR_IGNORE
// ERROR: Unresolved reference: TestTrait // ERROR: Unresolved reference: TestTrait
fun test() { fun test() {
+2 -1
View File
@@ -9,4 +9,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h foo h h foo h
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h <caret>foo h h <caret>foo h
} }
/* IGNORE_FIR */
@@ -9,4 +9,5 @@ import foo.iterator
fun foo(start: Foo, end: Foo) { fun foo(start: Foo, end: Foo) {
for (date in start<caret>..end) {} for (date in start<caret>..end) {}
} }
/* IGNORE_FIR */
@@ -8,4 +8,5 @@ import foo.Foo
fun foo(start: Foo, end: Foo) { fun foo(start: Foo, end: Foo) {
for (date in start<caret>..end) {} for (date in start<caret>..end) {}
} }
/* IGNORE_FIR */
+2 -1
View File
@@ -15,4 +15,5 @@ fun f(h: H?) {
fun String.minus(str: String) = "" fun String.minus(str: String) = ""
fun String.minus(i: Integer) = "" fun String.minus(i: Integer) = ""
/* IGNORE_FIR */
@@ -13,4 +13,5 @@ fun f(h: H?) {
fun String.minus(str: String) = "" fun String.minus(str: String) = ""
fun String.minus(i: Integer) = "" fun String.minus(i: Integer) = ""
/* IGNORE_FIR */
@@ -4,3 +4,5 @@ import test.Test
// ERROR: Unresolved reference: Nested // ERROR: Unresolved reference: Nested
val a = <caret>Test.Nested val a = <caret>Test.Nested
/* IGNORE_FIR */
@@ -2,3 +2,5 @@
// ERROR: Unresolved reference: Nested // ERROR: Unresolved reference: Nested
val a = <caret>Nested val a = <caret>Nested
/* IGNORE_FIR */
@@ -3,4 +3,5 @@
fun test() { fun test() {
Nested Nested
} }
/* IGNORE_FIR */
@@ -8,4 +8,5 @@
fun test() { fun test() {
<caret>Nested <caret>Nested
} }
/* IGNORE_FIR */
@@ -3,4 +3,5 @@
package testing package testing
class Some: testing.<caret>SomeTest class Some: testing.<caret>SomeTest
/* IGNORE_FIR */
@@ -5,4 +5,5 @@
package testing package testing
class Some: testing.<caret>SomeTest class Some: testing.<caret>SomeTest
/* IGNORE_FIR */
@@ -6,4 +6,5 @@
// ACTION: Rename reference // ACTION: Rename reference
// ERROR: Unresolved reference: SomeClass // ERROR: Unresolved reference: SomeClass
val x = <caret>SomeClass() val x = <caret>SomeClass()
/* IGNORE_FIR */
@@ -6,4 +6,5 @@
// ACTION: Rename reference // ACTION: Rename reference
// ERROR: Unresolved reference: ExcludedClass // ERROR: Unresolved reference: ExcludedClass
val x = <caret>ExcludedClass() val x = <caret>ExcludedClass()
/* IGNORE_FIR */
@@ -5,4 +5,5 @@
// ACTION: Rename reference // ACTION: Rename reference
// ERROR: Unresolved reference: someFunction // ERROR: Unresolved reference: someFunction
val x = <caret>someFunction() val x = <caret>someFunction()
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ fun useSite() {
val bar = Bar() val bar = Bar()
bar.buz<caret>("1", "2") bar.buz<caret>("1", "2")
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ fun useSite() {
val bar = Bar() val bar = Bar()
bar.buz<caret>("1", "2") bar.buz<caret>("1", "2")
} }
/* IGNORE_FIR */
+2 -1
View File
@@ -9,4 +9,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
h <caret>+ "other" h <caret>+ "other"
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
h <caret>+ "other" h <caret>+ "other"
} }
/* IGNORE_FIR */
@@ -10,4 +10,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
var h1 = h var h1 = h
h1++ h1++
} }
/* IGNORE_FIR */
@@ -8,4 +8,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
var h1 = h var h1 = h
h1<caret>++ h1<caret>++
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import some.Delegates
fun foo() { fun foo() {
val d = <caret>Delegates() val d = <caret>Delegates()
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ package testing
fun foo() { fun foo() {
val d = <caret>Delegates() val d = <caret>Delegates()
} }
/* IGNORE_FIR */
@@ -10,3 +10,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h *= 3 h *= 3
} }
/* IGNORE_FIR */
@@ -8,3 +8,5 @@ interface H
fun f(h: H) { fun f(h: H) {
h <caret>*= 3 h <caret>*= 3
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import dep.ext
fun use() { fun use() {
val ta = TA() val ta = TA()
ta.ext<caret>() ta.ext<caret>()
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import dep.TA
fun use() { fun use() {
val ta = TA() val ta = TA()
ta.ext<caret>() ta.ext<caret>()
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import dep.ext
fun use(taa: TTA) { fun use(taa: TTA) {
taa.ext<caret>() taa.ext<caret>()
} }
/* IGNORE_FIR */
@@ -5,4 +5,5 @@ import dep.TTA
fun use(taa: TTA) { fun use(taa: TTA) {
taa.ext<caret>() taa.ext<caret>()
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ import dep.ext
fun use() { fun use() {
val ta = TA() val ta = TA()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -6,4 +6,5 @@ import dep.TA
fun use() { fun use() {
val ta = TA() val ta = TA()
ta.ext<caret> ta.ext<caret>
} }
/* IGNORE_FIR */
@@ -6,3 +6,5 @@ import dependency.TestAlias
fun test() { fun test() {
val a = <caret>TestAlias val a = <caret>TestAlias
} }
/* IGNORE_FIR */
@@ -4,3 +4,5 @@
fun test() { fun test() {
val a = <caret>TestAlias val a = <caret>TestAlias
} }
/* IGNORE_FIR */
@@ -9,4 +9,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
-h -h
} }
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ interface H
fun f(h: H?) { fun f(h: H?) {
<caret>-h <caret>-h
} }
/* IGNORE_FIR */
@@ -13,4 +13,5 @@ fun f(h: H?) {
class A() class A()
operator fun A.unaryPlus(): Int = 3 operator fun A.unaryPlus(): Int = 3
/* IGNORE_FIR */
@@ -11,4 +11,5 @@ fun f(h: H?) {
class A() class A()
operator fun A.unaryPlus(): Int = 3 operator fun A.unaryPlus(): Int = 3
/* IGNORE_FIR */
@@ -11,4 +11,5 @@ fun test(a: Any) {
if (a is B) { if (a is B) {
a.<caret>foo() a.<caret>foo()
} }
} }
/* IGNORE_FIR */
@@ -9,4 +9,5 @@ fun test(a: Any) {
if (a is B) { if (a is B) {
a.<caret>foo() a.<caret>foo()
} }
} }
/* IGNORE_FIR */