blob: 5bd5438a34df6178129270c2a62ca624ec0f8381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.fir.findUsages
import com.intellij.util.ThrowableRunnable
import org.jetbrains.kotlin.findUsages.FindUsagesMultiModuleTest
import org.jetbrains.kotlin.idea.fir.invalidateCaches
import org.jetbrains.kotlin.idea.test.runAll
import org.jetbrains.kotlin.test.utils.IgnoreTests
import java.nio.file.Paths
class FindUsagesMultiModuleFirTest : FindUsagesMultiModuleTest() {
override val isFirPlugin: Boolean = true
override fun tearDown() {
runAll(
ThrowableRunnable { project.invalidateCaches() },
ThrowableRunnable { super.tearDown() }
)
}
override fun doFindUsagesTest() {
IgnoreTests.runTestIfEnabledByFileDirective(
Paths.get(mainFile.virtualFilePath),
IgnoreTests.DIRECTIVES.FIR_COMPARISON,
directivePosition = IgnoreTests.DirectivePosition.LAST_LINE_IN_FILE
) {
super.doFindUsagesTest()
}
}
}
|