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