Compare commits

...

12 Commits

Author SHA1 Message Date
Nikolay Krasko
0c70e3be9d -- temp 2019-11-14 20:59:54 +03:00
Nikolay Krasko
b7f9c594a1 -- temp 2019-11-12 23:11:04 +03:00
Nikolay Krasko
d64c8dff9d -- folding for all declarations with initializer 2019-11-12 23:11:03 +03:00
Nikolay Krasko
d2908885ff -- tests 2019-11-12 23:11:03 +03:00
Nikolay Krasko
5b7e6e44da Minor: Make diff function for AbstractKotlinFoldingTest 2019-11-12 23:11:02 +03:00
Nikolay Krasko
268fdc1363 -- remute KT-32856 2019-11-12 23:11:02 +03:00
Nikolay Krasko
6d76a889c8 -- remute KT-34106 2019-11-12 23:11:02 +03:00
Nikolay Krasko
13837b1b86 -- remute KT-34105 2019-11-12 23:11:01 +03:00
Nikolay Krasko
a38f63fd36 -- remute KT-34105 2019-11-12 23:11:01 +03:00
Nikolay Krasko
6499831732 -- Remute KT-32919 2019-11-12 23:11:01 +03:00
Nikolay Krasko
a7548f2305 Support auto-mute from file for database with mutes 2019-11-12 23:11:00 +03:00
Nikolay Krasko
fe8f0dcb18 Revert "Mute completion tests (KT-32919)"
This reverts commit 030aaee1
2019-11-12 23:11:00 +03:00
44 changed files with 247 additions and 74 deletions

View File

@@ -0,0 +1,15 @@
package noParameterLambdaArgumentCallInInline
fun main(args: Array<String>) {
lookAtMe {
val c = "c"
}
}
inline fun lookAtMe(f: String.() -> Unit) {
val a = "a"
//Breakpoint!
"123".
f()
val b = "b"
}

View File

@@ -740,6 +740,22 @@ public class KotlinTestUtils {
}
private static void runTestImpl(@NotNull DoTest test, @Nullable TestCase testCase, String testDataFilePath) throws Exception {
if (testCase != null) {
Function0<Unit> wrapWithMuteInDatabase = MuteWithDatabaseKt.wrapWithMuteInDatabase(testCase, () -> {
try {
test.invoke(testDataFilePath);
}
catch (Exception e) {
throw new IllegalStateException(e);
}
return null;
});
if (wrapWithMuteInDatabase != null) {
wrapWithMuteInDatabase.invoke();
return;
}
}
DoTest wrappedTest = testCase != null ?
MuteWithFileKt.testWithMuteInFile(test, testCase) :
MuteWithFileKt.testWithMuteInFile(test, "");

View File

@@ -8,9 +8,27 @@ package org.jetbrains.kotlin.test
import junit.framework.TestCase
import java.io.File
private class AutoMute(
val file: String,
val issue: String
)
private val DO_AUTO_MUTE: AutoMute? by lazy {
val autoMuteFile = File("tests/automute")
if (autoMuteFile.exists()) {
val lines = autoMuteFile.readLines().filter { it.isNotBlank() }.map { it.trim() }
AutoMute(
lines.getOrNull(0) ?: error("A file path is expected in tne first line"),
lines.getOrNull(1) ?: error("An issue description is the second line")
)
} else {
null
}
}
private class MutedTest(
val key: String,
val issue: String?,
@Suppress("unused") val issue: String?,
val hasFailFile: Boolean
) {
val methodName = key.substringAfterLast(".", "").replace("`", "").also {
@@ -92,21 +110,84 @@ internal fun isMutedInDatabase(testCase: TestCase): Boolean {
return mutedTest != null && !mutedTest.hasFailFile
}
internal fun wrapWithMuteInDatabase(testCase: TestCase, f: () -> Unit): () -> Unit {
if (!isMutedInDatabase(testCase)) return f
return { MUTED_DO_TEST_LAMBDA(testCase) }
}
internal fun wrapWithMuteInDatabase(testCase: TestCase, f: () -> Unit, testPath: String? = null): (() -> Unit)? {
val mutedTest = mutedSet.mutedTest(testCase)
if (mutedTest != null) {
if (!mutedTest.hasFailFile) {
return { MUTED_DO_TEST_LAMBDA(testCase) }
}
}
internal val MUTED_DO_TEST_LAMBDA = { testCase: TestCase ->
System.err.println("MUTED TEST: ${testCase::class.java.name}.${testCase.name}")
}
return {
try {
f()
} catch (e: Throwable) {
val doAutoMute = DO_AUTO_MUTE
if (mutedTest == null && doAutoMute != null) {
val file = File(doAutoMute.file)
val lines = file.readLines()
val firstLine = lines[0]
val muted = lines.drop(1).toMutableList()
muted.add("${testKey(testCase)}, ${doAutoMute.issue}")
val newMuted: List<String> = mutableListOf<String>() + firstLine + muted.sorted()
file.writeText(newMuted.joinToString("\n"))
}
internal class MutedDoTest(val testCase: TestCase) : KotlinTestUtils.DoTest {
override fun invoke(filePath: String) {
MUTED_DO_TEST_LAMBDA(testCase)
if (mutedTest != null) {
} else {
}
if (mutedTest != null && mutedTest.hasFailFile) {
val extraSuffix = testCase.javaClass.getAnnotation(MuteExtraSuffix::class.java)?.value ?: ""
if (checkFailFile(e, testDataFile, extraSuffix)) {
System.err.println("MUTED TEST (FAIL): $filePath")
return
}
} else {
}
throw e
}
}
}
internal val MUTED_DO_TEST_LAMBDA = { testCase: TestCase ->
System.err.println("MUTED TEST: ${testKey(testCase)}")
}
private fun failFile(testDataFile: File, extraSuffix: String): File? {
val failFile = failFileNoCheck(testDataFile, extraSuffix)
if (!failFile.exists() || !failFile.isFile) {
return null
}
return failFile
}
private fun testKey(testCase: TestCase) = "${testCase::class.java.canonicalName}.${testCase.name}"
private fun rawFileNoChecks(testPathFile: File, extraSuffix: String, suffix: String): File {
return when {
testPathFile.isDirectory ->
File(testPathFile, "${testPathFile.name}$extraSuffix$suffix")
else ->
File("${testPathFile.path}$extraSuffix$suffix")
}
}
private fun muteFileNoCheck(testPathFile: File, extraSuffix: String): File {
return rawFileNoChecks(testPathFile, extraSuffix, ".mute")
}
private fun failFileNoCheck(testPathFile: File, extraSuffix: String): File {
return rawFileNoChecks(testPathFile, extraSuffix, ".fail")
}
fun TestCase.runTest(test: () -> Unit) {
wrapWithMuteInDatabase(this, test).invoke()
(wrapWithMuteInDatabase(this, test) ?: test).invoke()
}

View File

@@ -18,10 +18,6 @@ annotation class MuteExtraSuffix(val value: String = "")
@Throws(Exception::class)
fun testWithMuteInFile(test: DoTest, testCase: TestCase): DoTest {
if (isMutedInDatabase(testCase)) {
return MutedDoTest(testCase)
}
val extraSuffix = testCase.javaClass.getAnnotation(MuteExtraSuffix::class.java)?.value ?: ""
return testWithMuteInFile(test, extraSuffix)
}

View File

@@ -1 +0,0 @@
MUTE

View File

@@ -40,7 +40,6 @@ import org.jetbrains.kotlin.psi.psiUtil.allChildren
import org.jetbrains.kotlin.psi.psiUtil.endOffset
import org.jetbrains.kotlin.psi.psiUtil.referenceExpression
import org.jetbrains.kotlin.psi.psiUtil.startOffset
import org.jetbrains.kotlin.psi.stubs.elements.KtFunctionElementType
import org.jetbrains.kotlin.resolve.calls.components.isVararg
class KotlinFoldingBuilder : CustomFoldingBuilder(), DumbAware {
@@ -104,17 +103,15 @@ class KotlinFoldingBuilder : CustomFoldingBuilder(), DumbAware {
private fun needFolding(node: ASTNode, document: Document): Boolean {
val type = node.elementType
val treeParent = node.treeParent?.psi
val parentType = node.treeParent?.elementType
if (type is KtFunctionElementType) {
val bodyExpression = (node.psi as? KtNamedFunction)?.bodyExpression
if (bodyExpression != null && bodyExpression !is KtBlockExpression) return true
}
val psi = node.psi
return type == KtNodeTypes.FUNCTION_LITERAL ||
(type == KtNodeTypes.BLOCK && parentType != KtNodeTypes.FUNCTION_LITERAL) ||
type == KtNodeTypes.CLASS_BODY || type == KtTokens.BLOCK_COMMENT || type == KDocTokens.KDOC ||
type == KtNodeTypes.STRING_TEMPLATE || type == KtNodeTypes.PRIMARY_CONSTRUCTOR || type == KtNodeTypes.WHEN ||
(psi is KtDeclarationWithInitializer && psi.hasInitializer()) ||
node.shouldFoldCollection(document)
}
@@ -138,24 +135,25 @@ class KotlinFoldingBuilder : CustomFoldingBuilder(), DumbAware {
}
private fun getRangeToFold(node: ASTNode): TextRange {
if (node.elementType is KtFunctionElementType) {
val bodyExpression = (node.psi as? KtNamedFunction)?.bodyExpression
if (bodyExpression != null && bodyExpression !is KtBlockExpression) {
return bodyExpression.textRange
val psi = node.psi
if (psi is KtDeclarationWithInitializer) {
val initializer = psi.initializer
if (initializer != null) {
return initializer.textRange
}
}
if (node.elementType == KtNodeTypes.FUNCTION_LITERAL) {
val psi = node.psi as? KtFunctionLiteral
val lbrace = psi?.lBrace
val rbrace = psi?.rBrace
val functionLiteral = psi as? KtFunctionLiteral
val lbrace = functionLiteral?.lBrace
val rbrace = functionLiteral?.rBrace
if (lbrace != null && rbrace != null) {
return TextRange(lbrace.startOffset, rbrace.endOffset)
}
}
if (node.elementType == KtNodeTypes.CALL_EXPRESSION) {
val valueArgumentList = (node.psi as? KtCallExpression)?.valueArgumentList
val valueArgumentList = (psi as? KtCallExpression)?.valueArgumentList
val leftParenthesis = valueArgumentList?.leftParenthesis
val rightParenthesis = valueArgumentList?.rightParenthesis
if (leftParenthesis != null && rightParenthesis != null) {
@@ -164,7 +162,7 @@ class KotlinFoldingBuilder : CustomFoldingBuilder(), DumbAware {
}
if (node.elementType == KtNodeTypes.WHEN) {
val whenExpression = node.psi as? KtWhenExpression
val whenExpression = psi as? KtWhenExpression
val openBrace = whenExpression?.openBrace
val closeBrace = whenExpression?.closeBrace
if (openBrace != null && closeBrace != null) {

View File

@@ -1,17 +1,17 @@
val array = arrayOf<fold text='(...)' expand='true'>(
val array = <fold text='{...}' expand='true'>arrayOf<fold text='(...)' expand='true'>(
11 to 0,
12 to 1,
13 to 3,
)</fold>
)</fold></fold>
val set = setOf<fold text='(...)' expand='true'>(
val set = <fold text='{...}' expand='true'>setOf<fold text='(...)' expand='true'>(
1,
2
)</fold>
)</fold></fold>
val list = listOf<fold text='(...)' expand='true'>(
val list = <fold text='{...}' expand='true'>listOf<fold text='(...)' expand='true'>(
1,
2
)</fold>
)</fold></fold>
// WITH_RUNTIME

View File

@@ -1,5 +1,5 @@
val arrayEmpty = arrayOf()
val arrayOneOneLiner = arrayOf(1)
val arrayOneMultiLine = arrayOf(
val arrayOneMultiLine = <fold text='{...}' expand='true'>arrayOf(
1
)
)</fold>

View File

@@ -0,0 +1,3 @@
val test get() = <fold text='{...}' expand='true'>listOf(1, 2, 3)
.filter { it > 2 }
.map { it > 2 }</fold>

View File

@@ -1,4 +1,4 @@
val result1 = <fold text='"""14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 1.0, 0.5, 2.0, 3.0, 3.0 ..."""' expand='true'>"""
val result1 = <fold text='{...}' expand='true'>"""
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 1.0, 0.5, 2.0, 3.0, 3.0
14.55576559546314 - 0.25, 4.0, 1.0, 0.5, 1.0, 1.0, 3.0, 4.0, 3.0, 0.25, 3.0, 0.5, 3.0, 3.0, 2.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 2.0, 2.0, 1.0, 0.5, 1.0, 0.5, 2.0, 3.0, 3.0
@@ -22,11 +22,11 @@ val result1 = <fold text='"""14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 3.0, 0.3333333333333333, 1.0, 0.5, 3.0, 3.0, 2.5
"""</fold>
val result2 = <fold text='"""other multiline string ..."""' expand='true'>"""other multiline string
val result2 = <fold text='{...}' expand='true'>"""other multiline string
without spaces
"""</fold>
val empty = <fold text='"""..."""' expand='true'>"""
val empty = <fold text='{...}' expand='true'>"""
"""</fold>

View File

@@ -1,6 +1,6 @@
val result3 = """aaa"""
val result4 = "bbb"
val result5 = "ccc" +
"ddd"
val result6 = "eee" +
"""fff"""
val result5 = <fold text='{...}'>"ccc" +
"ddd"</fold>
val result6 = <fold text='{...}'>"eee" +
"""fff"""</fold>

View File

@@ -1 +0,0 @@
// https://youtrack.jetbrains.com/issue/KT-32856

View File

@@ -1 +0,0 @@
// https://youtrack.jetbrains.com/issue/KT-32856

View File

@@ -1 +0,0 @@
// https://youtrack.jetbrains.com/issue/KT-32856

View File

@@ -1 +0,0 @@
// https://youtrack.jetbrains.com/issue/KT-32856

View File

@@ -1 +0,0 @@
https://youtrack.jetbrains.com/issue/KT-34105

View File

@@ -1 +0,0 @@
https://youtrack.jetbrains.com/issue/KT-34105

View File

@@ -1 +0,0 @@
https://youtrack.jetbrains.com/issue/KT-34106

View File

@@ -1 +0,0 @@
https://youtrack.jetbrains.com/issue/KT-34106

View File

@@ -1 +0,0 @@
https://youtrack.jetbrains.com/issue/KT-34106

View File

@@ -10,11 +10,14 @@ import com.intellij.codeInsight.folding.impl.JavaCodeFoldingSettingsImpl;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.rt.execution.junit.FileComparisonFailure;
import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.SettingsConfigurator;
import org.junit.Assert;
import org.junit.ComparisonFailure;
import java.io.File;
import java.io.IOException;
@@ -23,27 +26,52 @@ import java.util.function.Consumer;
public abstract class AbstractKotlinFoldingTest extends KotlinLightCodeInsightFixtureTestCase {
protected void doTest(@NotNull String path) {
myFixture.testFolding(path);
try {
myFixture.testFolding(path);
} catch (FileComparisonFailure e) {
throw new FileComparisonFailure(e.getMessage(), e.getExpected(), e.getActual(), new File(e.getFilePath()).getAbsolutePath());
}
}
protected void doSettingsFoldingTest(@NotNull String path) throws IOException{
String fileText = FileUtil.loadFile(new File(path), true);
protected void doSettingsFoldingTest(@NotNull String path) throws IOException {
File file = new File(path);
String fileText = FileUtil.loadFile(file, true);
String directText = fileText.replaceAll("~true~", "true").replaceAll("~false~", "false");
directText += "\n\n// Generated from: " + path;
String suffix = "\n\n// Generated from: " + path;
directText += suffix;
Consumer<String> doExpandSettingsTestFunction = this::doExpandSettingsTest;
doTestWithSettings(directText, doExpandSettingsTestFunction);
try {
doTestWithSettings(directText, doExpandSettingsTestFunction);
} catch (ComparisonFailure e) {
KotlinTestUtils.assertEqualsToFile(
file,
e.getActual().replace(suffix, "")
);
}
String invertedText = fileText
.replaceAll("~false~", "true").replaceAll("~true~", "false")
.replaceAll(SettingsConfigurator.SET_TRUE_DIRECTIVE, "~TEMP_TRUE_DIRECTIVE~")
.replaceAll(SettingsConfigurator.SET_FALSE_DIRECTIVE, SettingsConfigurator.SET_TRUE_DIRECTIVE)
.replaceAll("~TEMP_TRUE_DIRECTIVE~", SettingsConfigurator.SET_FALSE_DIRECTIVE);
invertedText += "\n\n// Generated from: " + path + " with !INVERTED! settings";
String invertedSuffix = "\n\n// Generated from: " + path + " with !INVERTED! settings";
invertedText += invertedSuffix;
doTestWithSettings(invertedText, doExpandSettingsTestFunction);
try {
doTestWithSettings(invertedText, doExpandSettingsTestFunction);
} catch (ComparisonFailure e) {
KotlinTestUtils.assertEqualsToFile(
file,
e.getActual()
.replaceAll(SettingsConfigurator.SET_FALSE_DIRECTIVE, "~TEMP_TRUE_DIRECTIVE~")
.replaceAll(SettingsConfigurator.SET_TRUE_DIRECTIVE, SettingsConfigurator.SET_FALSE_DIRECTIVE)
.replaceAll("~TEMP_TRUE_DIRECTIVE~", SettingsConfigurator.SET_TRUE_DIRECTIVE)
.replace(invertedSuffix, "")
);
}
}
protected static void doTestWithSettings(@NotNull String fileText, @NotNull Consumer<String> runnable) {

View File

@@ -113,6 +113,11 @@ public class KotlinFoldingTestGenerated extends AbstractKotlinFoldingTest {
runTest("idea/testData/folding/checkCollapse/doubleImportListsError.kt");
}
@TestMetadata("expressionAccessors.kt")
public void testExpressionAccessors() throws Exception {
runTest("idea/testData/folding/checkCollapse/expressionAccessors.kt");
}
@TestMetadata("functionLiteral.kt")
public void testFunctionLiteral() throws Exception {
runTest("idea/testData/folding/checkCollapse/functionLiteral.kt");

View File

@@ -1 +1,17 @@
Test key, Issue, State (optional: MUTE or FAIL)
Test key, Issue, State (optional: MUTE or FAIL)
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingReadOnlyInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerWithoutUltraLightTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Common.StaticMembers.testJavaStaticMethodsFromImports, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast1, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties1, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testNullableReceiver, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSafeCall, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSyntheticExtensions1, KT-32919
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJsModuleToJvmModule_MoveFromJsModuleToJvmModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJvmModuleToJsModule_MoveFromJvmModuleToJsModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveJdkDependentToJsModule_MoveJdkDependentToJsModule, KT-34106
1 Test key Test key, Issue, State (optional: MUTE or FAIL) Issue State (optional: MUTE or FAIL)
2 org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
3 org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingReadOnlyInterfaces, KT-34105
4 org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerWithoutUltraLightTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
5 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Common.StaticMembers.testJavaStaticMethodsFromImports, KT-32919
6 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast1, KT-32919
7 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast2, KT-32919
8 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties1, KT-32919
9 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties2, KT-32919
10 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testNullableReceiver, KT-32919
11 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSafeCall, KT-32919
12 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast, KT-32919
13 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast2, KT-32919
14 org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSyntheticExtensions1, KT-32919
15 org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJsModuleToJvmModule_MoveFromJsModuleToJvmModule, KT-34106
16 org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJvmModuleToJsModule_MoveFromJvmModuleToJsModule, KT-34106
17 org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveJdkDependentToJsModule_MoveJdkDependentToJsModule, KT-34106

7
tests/mute.csv.191 Normal file
View File

@@ -0,0 +1,7 @@
Test key, Issue, State (optional: MUTE or FAIL)
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingReadOnlyInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerWithoutUltraLightTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJsModuleToJvmModule_MoveFromJsModuleToJvmModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJvmModuleToJsModule_MoveFromJvmModuleToJsModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveJdkDependentToJsModule_MoveJdkDependentToJsModule, KT-34106

View File

@@ -1,4 +1,7 @@
Test key, Issue, State (optional: MUTE or FAIL)
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingReadOnlyInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerWithoutUltraLightTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.findUsages.KotlinFindUsagesWithLibraryTestGenerated.KotlinLibrary.testLibraryClassUsages, KT-34542, FAIL
org.jetbrains.kotlin.findUsages.KotlinFindUsagesWithLibraryTestGenerated.KotlinLibrary.testLibraryNestedClassUsages, KT-34542, FAIL
org.jetbrains.kotlin.findUsages.KotlinFindUsagesWithLibraryTestGenerated.KotlinLibrary.testLibraryObjectUsages, KT-34542, FAIL
@@ -10,6 +13,16 @@ org.jetbrains.kotlin.idea.codeInsight.surroundWith.SurroundWithTestGenerated.If.
org.jetbrains.kotlin.idea.codeInsight.surroundWith.SurroundWithTestGenerated.If.MoveDeclarationsOut.Order.testValOrder, flaky failure
org.jetbrains.kotlin.idea.codeInsight.surroundWith.SurroundWithTestGenerated.If.MoveDeclarationsOut.Val.testValWithTypeWoInitializer, flaky failure
org.jetbrains.kotlin.idea.codeInsight.surroundWith.SurroundWithTestGenerated.If.MoveDeclarationsOut.Var.testVarWithTypeWoInitializer, Unprocessed
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Common.StaticMembers.testJavaStaticMethodsFromImports, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast1, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testNonPredictableSmartCast2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties1, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.BoldOrGrayed.testSyntheticJavaProperties2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testNullableReceiver, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSafeCall, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSmartCast2, KT-32919
org.jetbrains.kotlin.idea.completion.test.JvmBasicCompletionTestGenerated.Java.SyntheticExtensions.testSyntheticExtensions1, KT-32919
org.jetbrains.kotlin.idea.completion.test.KotlinSourceInJavaCompletionTestGenerated.testMultiFileFacadeMembers, KT-34689
org.jetbrains.kotlin.idea.decompiler.navigation.NavigateFromJSLibrarySourcesTest.testIcon, Unprocessed
org.jetbrains.kotlin.idea.decompiler.navigation.NavigateFromLibrarySourcesTest.testBuiltinClass, KT-34542
@@ -101,6 +114,9 @@ org.jetbrains.kotlin.idea.refactoring.inline.InlineTestGenerated.Function.Expres
org.jetbrains.kotlin.idea.refactoring.introduce.ExtractionTestGenerated.IntroduceJavaParameter.testJavaMethodOverridingKotlinFunctionWithUsages, Unprocessed
org.jetbrains.kotlin.idea.refactoring.move.MoveTestGenerated.testJava_moveClass_moveInnerToTop_moveNestedClassToTopLevelInTheSamePackageAndAddOuterInstanceWithLambda_MoveNestedClassToTopLevelInTheSamePackageAndAddOuterInstanceWithLambda, final modifier added
org.jetbrains.kotlin.idea.refactoring.move.MoveTestGenerated.testJava_moveClass_moveInnerToTop_moveNestedClassToTopLevelInTheSamePackageAndAddOuterInstance_MoveNestedClassToTopLevelInTheSamePackageAndAddOuterInstance, final modifier added
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJsModuleToJvmModule_MoveFromJsModuleToJvmModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJvmModuleToJsModule_MoveFromJvmModuleToJsModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveJdkDependentToJsModule_MoveJdkDependentToJsModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.pullUp.PullUpTestGenerated.K2K.testAccidentalOverrides, Unprocessed
org.jetbrains.kotlin.idea.refactoring.rename.RenameTestGenerated.testOverloadsWithSameOrigin_OverloadsWithSameOrigin, Bad imports after rename
org.jetbrains.kotlin.idea.refactoring.rename.RenameTestGenerated.testRenameKotlinMultifileFacadeClassWithJvmNameByRef_RenameKotlinMultifileFacadeClassWithJvmName, KT-34689

11
tests/mute.csv.as34 Normal file
View File

@@ -0,0 +1,11 @@
Test key, Issue, State (optional: MUTE or FAIL)
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerTestGenerated.JavaAgainstKotlin.testExtendingReadOnlyInterfaces, KT-34105
org.jetbrains.kotlin.checkers.JavaAgainstKotlinSourceCheckerWithoutUltraLightTestGenerated.JavaAgainstKotlin.testExtendingMutableInterfaces, KT-34105
org.jetbrains.kotlin.idea.codeInsight.InspectionTestGenerated.Inspections.testOverridingDeprecatedMember_inspectionData_Inspections_test, KT-32856
org.jetbrains.kotlin.idea.codeInsight.InspectionTestGenerated.Inspections.testRecursivePropertyAccessor_inspectionData_Inspections_test, KT-32856
org.jetbrains.kotlin.idea.codeInsight.InspectionTestGenerated.Inspections.testRemoveSetterParameterType_inspectionData_Inspections_test, KT-32856
org.jetbrains.kotlin.idea.codeInsight.InspectionTestGenerated.Intentions.testRemoveExplicitSuperQualifier_inspectionData_Inspections_test, KT-32856
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJsModuleToJvmModule_MoveFromJsModuleToJvmModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveFromJvmModuleToJsModule_MoveFromJvmModuleToJsModule, KT-34106
org.jetbrains.kotlin.idea.refactoring.move.MultiModuleMoveTestGenerated.testMoveJdkDependentToJsModule_MoveJdkDependentToJsModule, KT-34106