Regenerate tests

This commit is contained in:
Mikhael Bogdanov
2021-07-15 13:38:01 +02:00
committed by Space
parent 3aeb9291fe
commit 671ef7dfff
7 changed files with 1064 additions and 289 deletions
@@ -1761,6 +1761,272 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters")
@TestDataPath("$PROJECT_ROOT")
public class Parameters {
@Test
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/byte.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/char.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/double.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/float.kt");
}
@Test
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/int.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/long.kt");
}
@Test
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/short.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters/expressions")
@TestDataPath("$PROJECT_ROOT")
public class Expressions {
@Test
public void testAllFilesPresentInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/andAnd.kt");
}
@Test
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/boolean.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/char.kt");
}
@Test
@TestMetadata("compositeCallBinary.kt")
public void testCompositeCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/compositeCallBinary.kt");
}
@Test
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/divide.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/double.kt");
}
@Test
@TestMetadata("eqeq.kt")
public void testEqeq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/eqeq.kt");
}
@Test
@TestMetadata("escapedString.kt")
public void testEscapedString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/escapedString.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/float.kt");
}
@Test
@TestMetadata("gt.kt")
public void testGt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gt.kt");
}
@Test
@TestMetadata("gteq.kt")
public void testGteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gteq.kt");
}
@Test
@TestMetadata("intrincics.kt")
public void testIntrincics() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/intrincics.kt");
}
@Test
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/labeled.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/long.kt");
}
@Test
@TestMetadata("lt.kt")
public void testLt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lt.kt");
}
@Test
@TestMetadata("lteq.kt")
public void testLteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lteq.kt");
}
@Test
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValue.kt");
}
@Test
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueByte.kt");
}
@Test
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt");
}
@Test
@TestMetadata("miltiply.kt")
public void testMiltiply() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/miltiply.kt");
}
@Test
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/minus.kt");
}
@Test
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/mod.kt");
}
@Test
@TestMetadata("multilineString.kt")
public void testMultilineString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/multilineString.kt");
}
@Test
@TestMetadata("not.kt")
public void testNot() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/not.kt");
}
@Test
@TestMetadata("noteq.kt")
public void testNoteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/noteq.kt");
}
@Test
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/orOr.kt");
}
@Test
@TestMetadata("paranthesized.kt")
public void testParanthesized() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/paranthesized.kt");
}
@Test
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/plus.kt");
}
@Test
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/simpleCallBinary.kt");
}
@Test
@TestMetadata("stringPlusInt.kt")
public void testStringPlusInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringPlusInt.kt");
}
@Test
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringTemplate.kt");
}
@Test
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/strings.kt");
}
@Test
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryMinus.kt");
}
@Test
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryPlus.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/rendering")
@TestDataPath("$PROJECT_ROOT")
@@ -1761,6 +1761,272 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters")
@TestDataPath("$PROJECT_ROOT")
public class Parameters {
@Test
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/byte.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/char.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/double.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/float.kt");
}
@Test
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/int.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/long.kt");
}
@Test
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/short.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters/expressions")
@TestDataPath("$PROJECT_ROOT")
public class Expressions {
@Test
public void testAllFilesPresentInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/andAnd.kt");
}
@Test
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/boolean.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/char.kt");
}
@Test
@TestMetadata("compositeCallBinary.kt")
public void testCompositeCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/compositeCallBinary.kt");
}
@Test
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/divide.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/double.kt");
}
@Test
@TestMetadata("eqeq.kt")
public void testEqeq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/eqeq.kt");
}
@Test
@TestMetadata("escapedString.kt")
public void testEscapedString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/escapedString.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/float.kt");
}
@Test
@TestMetadata("gt.kt")
public void testGt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gt.kt");
}
@Test
@TestMetadata("gteq.kt")
public void testGteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gteq.kt");
}
@Test
@TestMetadata("intrincics.kt")
public void testIntrincics() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/intrincics.kt");
}
@Test
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/labeled.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/long.kt");
}
@Test
@TestMetadata("lt.kt")
public void testLt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lt.kt");
}
@Test
@TestMetadata("lteq.kt")
public void testLteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lteq.kt");
}
@Test
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValue.kt");
}
@Test
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueByte.kt");
}
@Test
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt");
}
@Test
@TestMetadata("miltiply.kt")
public void testMiltiply() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/miltiply.kt");
}
@Test
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/minus.kt");
}
@Test
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/mod.kt");
}
@Test
@TestMetadata("multilineString.kt")
public void testMultilineString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/multilineString.kt");
}
@Test
@TestMetadata("not.kt")
public void testNot() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/not.kt");
}
@Test
@TestMetadata("noteq.kt")
public void testNoteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/noteq.kt");
}
@Test
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/orOr.kt");
}
@Test
@TestMetadata("paranthesized.kt")
public void testParanthesized() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/paranthesized.kt");
}
@Test
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/plus.kt");
}
@Test
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/simpleCallBinary.kt");
}
@Test
@TestMetadata("stringPlusInt.kt")
public void testStringPlusInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringPlusInt.kt");
}
@Test
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringTemplate.kt");
}
@Test
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/strings.kt");
}
@Test
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryMinus.kt");
}
@Test
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryPlus.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/rendering")
@TestDataPath("$PROJECT_ROOT")
@@ -1767,6 +1767,272 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters")
@TestDataPath("$PROJECT_ROOT")
public class Parameters {
@Test
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/byte.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/char.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/double.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/float.kt");
}
@Test
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/int.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/long.kt");
}
@Test
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/short.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters/expressions")
@TestDataPath("$PROJECT_ROOT")
public class Expressions {
@Test
public void testAllFilesPresentInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters/expressions"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/andAnd.kt");
}
@Test
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/boolean.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/char.kt");
}
@Test
@TestMetadata("compositeCallBinary.kt")
public void testCompositeCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/compositeCallBinary.kt");
}
@Test
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/divide.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/double.kt");
}
@Test
@TestMetadata("eqeq.kt")
public void testEqeq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/eqeq.kt");
}
@Test
@TestMetadata("escapedString.kt")
public void testEscapedString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/escapedString.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/float.kt");
}
@Test
@TestMetadata("gt.kt")
public void testGt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gt.kt");
}
@Test
@TestMetadata("gteq.kt")
public void testGteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gteq.kt");
}
@Test
@TestMetadata("intrincics.kt")
public void testIntrincics() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/intrincics.kt");
}
@Test
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/labeled.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/long.kt");
}
@Test
@TestMetadata("lt.kt")
public void testLt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lt.kt");
}
@Test
@TestMetadata("lteq.kt")
public void testLteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lteq.kt");
}
@Test
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValue.kt");
}
@Test
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueByte.kt");
}
@Test
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt");
}
@Test
@TestMetadata("miltiply.kt")
public void testMiltiply() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/miltiply.kt");
}
@Test
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/minus.kt");
}
@Test
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/mod.kt");
}
@Test
@TestMetadata("multilineString.kt")
public void testMultilineString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/multilineString.kt");
}
@Test
@TestMetadata("not.kt")
public void testNot() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/not.kt");
}
@Test
@TestMetadata("noteq.kt")
public void testNoteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/noteq.kt");
}
@Test
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/orOr.kt");
}
@Test
@TestMetadata("paranthesized.kt")
public void testParanthesized() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/paranthesized.kt");
}
@Test
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/plus.kt");
}
@Test
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/simpleCallBinary.kt");
}
@Test
@TestMetadata("stringPlusInt.kt")
public void testStringPlusInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringPlusInt.kt");
}
@Test
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringTemplate.kt");
}
@Test
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/strings.kt");
}
@Test
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryMinus.kt");
}
@Test
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryPlus.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/rendering")
@TestDataPath("$PROJECT_ROOT")
@@ -1,35 +0,0 @@
/*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.kotlin.resolve.annotation
import com.intellij.openapi.util.io.FileUtil
import org.jetbrains.kotlin.test.InTextDirectivesUtils
import org.jetbrains.kotlin.test.KotlinTestUtils
import java.io.File
abstract class AbstractAnnotationParameterTest : AbstractAnnotationDescriptorResolveTest() {
fun doTest(path: String) {
val fileText = FileUtil.loadFile(File(path), true)
val packageView = getPackage(fileText)
val classDescriptor = AbstractAnnotationDescriptorResolveTest.getClassDescriptor(packageView, "MyClass")
val expected = InTextDirectivesUtils.findListWithPrefixes(fileText, "// EXPECTED: ").joinToString(", ")
val actual = AbstractAnnotationDescriptorResolveTest.renderAnnotations(classDescriptor.annotations)
KotlinTestUtils.assertEqualsToFile(File(path), fileText.replace(expected, actual))
}
}
@@ -45,7 +45,6 @@ import org.jetbrains.kotlin.multiplatform.AbstractMultiPlatformIntegrationTest
import org.jetbrains.kotlin.parsing.AbstractParsingTest
import org.jetbrains.kotlin.repl.AbstractReplInterpreterTest
import org.jetbrains.kotlin.resolve.AbstractResolveTest
import org.jetbrains.kotlin.resolve.annotation.AbstractAnnotationParameterTest
import org.jetbrains.kotlin.resolve.calls.AbstractResolvedCallsTest
import org.jetbrains.kotlin.resolve.calls.AbstractResolvedConstructorDelegationCallsTests
import org.jetbrains.kotlin.resolve.constants.evaluate.AbstractCompileTimeConstantEvaluatorTest
@@ -305,10 +304,6 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
model("cfgVariablesWithStdLib", testMethod = "doTestWithStdLib")
}
testClass<AbstractAnnotationParameterTest> {
model("resolveAnnotations/parameters")
}
testClass<AbstractCompileTimeConstantEvaluatorTest> {
model("evaluate/constant", testMethod = "doConstantTest")
model("evaluate/isPure", testMethod = "doIsPureTest")
@@ -1,249 +0,0 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve.annotation;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/resolveAnnotations/parameters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class AnnotationParameterTestGenerated extends AbstractAnnotationParameterTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/byte.kt");
}
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/char.kt");
}
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/double.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/float.kt");
}
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/int.kt");
}
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/long.kt");
}
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/short.kt");
}
@TestMetadata("compiler/testData/resolveAnnotations/parameters/expressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Expressions extends AbstractAnnotationParameterTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/andAnd.kt");
}
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/boolean.kt");
}
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/char.kt");
}
@TestMetadata("compositeCallBinary.kt")
public void testCompositeCallBinary() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/compositeCallBinary.kt");
}
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/divide.kt");
}
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/double.kt");
}
@TestMetadata("eqeq.kt")
public void testEqeq() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/eqeq.kt");
}
@TestMetadata("escapedString.kt")
public void testEscapedString() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/escapedString.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/float.kt");
}
@TestMetadata("gt.kt")
public void testGt() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gt.kt");
}
@TestMetadata("gteq.kt")
public void testGteq() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gteq.kt");
}
@TestMetadata("intrincics.kt")
public void testIntrincics() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/intrincics.kt");
}
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/labeled.kt");
}
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/long.kt");
}
@TestMetadata("lt.kt")
public void testLt() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lt.kt");
}
@TestMetadata("lteq.kt")
public void testLteq() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lteq.kt");
}
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValue.kt");
}
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueByte.kt");
}
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueInt.kt");
}
@TestMetadata("miltiply.kt")
public void testMiltiply() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/miltiply.kt");
}
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/minus.kt");
}
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/mod.kt");
}
@TestMetadata("multilineString.kt")
public void testMultilineString() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
}
@TestMetadata("not.kt")
public void testNot() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/not.kt");
}
@TestMetadata("noteq.kt")
public void testNoteq() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/noteq.kt");
}
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/orOr.kt");
}
@TestMetadata("paranthesized.kt")
public void testParanthesized() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/paranthesized.kt");
}
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/plus.kt");
}
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/simpleCallBinary.kt");
}
@TestMetadata("stringPlusInt.kt")
public void testStringPlusInt() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringPlusInt.kt");
}
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringTemplate.kt");
}
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/strings.kt");
}
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryMinus.kt");
}
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryPlus.kt");
}
}
}
@@ -1761,6 +1761,272 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters")
@TestDataPath("$PROJECT_ROOT")
public class Parameters {
@Test
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/byte.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/char.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/double.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/float.kt");
}
@Test
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/int.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/long.kt");
}
@Test
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/short.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/parameters/expressions")
@TestDataPath("$PROJECT_ROOT")
public class Expressions {
@Test
public void testAllFilesPresentInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/andAnd.kt");
}
@Test
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/boolean.kt");
}
@Test
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/char.kt");
}
@Test
@TestMetadata("compositeCallBinary.kt")
public void testCompositeCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/compositeCallBinary.kt");
}
@Test
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/divide.kt");
}
@Test
@TestMetadata("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/double.kt");
}
@Test
@TestMetadata("eqeq.kt")
public void testEqeq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/eqeq.kt");
}
@Test
@TestMetadata("escapedString.kt")
public void testEscapedString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/escapedString.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/float.kt");
}
@Test
@TestMetadata("gt.kt")
public void testGt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gt.kt");
}
@Test
@TestMetadata("gteq.kt")
public void testGteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/gteq.kt");
}
@Test
@TestMetadata("intrincics.kt")
public void testIntrincics() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/intrincics.kt");
}
@Test
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/labeled.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/long.kt");
}
@Test
@TestMetadata("lt.kt")
public void testLt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lt.kt");
}
@Test
@TestMetadata("lteq.kt")
public void testLteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/lteq.kt");
}
@Test
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValue.kt");
}
@Test
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueByte.kt");
}
@Test
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt");
}
@Test
@TestMetadata("miltiply.kt")
public void testMiltiply() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/miltiply.kt");
}
@Test
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/minus.kt");
}
@Test
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/mod.kt");
}
@Test
@TestMetadata("multilineString.kt")
public void testMultilineString() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/multilineString.kt");
}
@Test
@TestMetadata("not.kt")
public void testNot() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/not.kt");
}
@Test
@TestMetadata("noteq.kt")
public void testNoteq() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/noteq.kt");
}
@Test
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/orOr.kt");
}
@Test
@TestMetadata("paranthesized.kt")
public void testParanthesized() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/paranthesized.kt");
}
@Test
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/plus.kt");
}
@Test
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/simpleCallBinary.kt");
}
@Test
@TestMetadata("stringPlusInt.kt")
public void testStringPlusInt() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringPlusInt.kt");
}
@Test
@TestMetadata("stringTemplate.kt")
public void testStringTemplate() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/stringTemplate.kt");
}
@Test
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/strings.kt");
}
@Test
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryMinus.kt");
}
@Test
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/parameters/expressions/unaryPlus.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/annotations/rendering")
@TestDataPath("$PROJECT_ROOT")