Regenerate tests

This commit is contained in:
Zalim Bashorov
2016-11-07 16:12:10 +03:00
parent 8e480e275b
commit 1dedb38481
214 changed files with 2838 additions and 2623 deletions
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class)
public class ResolveTestGenerated extends AbstractResolveTest {
public void testAllFilesPresentInResolve() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("Basic.resolve")
@@ -208,7 +209,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class CandidatesPriority extends AbstractResolveTest {
public void testAllFilesPresentInCandidatesPriority() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("classObjectOuterResolve.resolve")
@@ -319,7 +320,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class DelegatedProperty extends AbstractResolveTest {
public void testAllFilesPresentInDelegatedProperty() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("delegationByCall.resolve")
@@ -370,7 +371,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Imports extends AbstractResolveTest {
public void testAllFilesPresentInImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("ImportConflictAllPackage.resolve")
@@ -451,7 +452,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Labels extends AbstractResolveTest {
public void testAllFilesPresentInLabels() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("labelForPropertyInGetter.resolve")
@@ -472,7 +473,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Regressions extends AbstractResolveTest {
public void testAllFilesPresentInRegressions() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("kt300.resolve")
@@ -493,7 +494,7 @@ public class ResolveTestGenerated extends AbstractResolveTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Varargs extends AbstractResolveTest {
public void testAllFilesPresentInVarargs() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
}
@TestMetadata("MoreSpecificVarargsOfEqualLength.resolve")
@@ -19,6 +19,7 @@ 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.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class)
public class AnnotationParameterTestGenerated extends AbstractAnnotationParameterTest {
public void testAllFilesPresentInParameters() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("byte.kt")
@@ -82,7 +83,7 @@ public class AnnotationParameterTestGenerated extends AbstractAnnotationParamete
@RunWith(JUnit3RunnerWithInners.class)
public static class Expressions extends AbstractAnnotationParameterTest {
public void testAllFilesPresentInExpressions() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("andAnd.kt")
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve.calls;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class)
public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
public void testAllFilesPresentInResolvedCalls() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
@@ -88,7 +89,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Arguments extends AbstractResolvedCallsTest {
public void testAllFilesPresentInArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals")
@@ -96,7 +97,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionLiterals extends AbstractResolvedCallsTest {
public void testAllFilesPresentInFunctionLiterals() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("chainedLambdas.kt")
@@ -141,7 +142,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class GenericCalls extends AbstractResolvedCallsTest {
public void testAllFilesPresentInGenericCalls() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/genericCalls"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/genericCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("inferredParameter.kt")
@@ -174,7 +175,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class NamedArguments extends AbstractResolvedCallsTest {
public void testAllFilesPresentInNamedArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/namedArguments"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/namedArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("positionedAfterNamed.kt")
@@ -195,7 +196,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class OneArgument extends AbstractResolvedCallsTest {
public void testAllFilesPresentInOneArgument() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/oneArgument"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/oneArgument"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("argumentHasNoType.kt")
@@ -228,7 +229,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class RealExamples extends AbstractResolvedCallsTest {
public void testAllFilesPresentInRealExamples() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/realExamples"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/realExamples"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("emptyList.kt")
@@ -249,7 +250,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class SeveralCandidates extends AbstractResolvedCallsTest {
public void testAllFilesPresentInSeveralCandidates() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/severalCandidates"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/severalCandidates"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("mostSpecific.kt")
@@ -265,7 +266,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class DifferentCallElements extends AbstractResolvedCallsTest {
public void testAllFilesPresentInDifferentCallElements() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/differentCallElements"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/differentCallElements"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationCall.kt")
@@ -292,7 +293,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Dynamic extends AbstractResolvedCallsTest {
public void testAllFilesPresentInDynamic() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/dynamic"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/dynamic"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
@@ -337,7 +338,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionTypes extends AbstractResolvedCallsTest {
public void testAllFilesPresentInFunctionTypes() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/functionTypes"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/functionTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("invokeForExtensionFunctionType.kt")
@@ -382,7 +383,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Invoke extends AbstractResolvedCallsTest {
public void testAllFilesPresentInInvoke() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/invoke"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/invoke"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("bothReceivers.kt")
@@ -451,7 +452,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ObjectsAndClassObjects extends AbstractResolvedCallsTest {
public void testAllFilesPresentInObjectsAndClassObjects() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/objectsAndClassObjects"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/objectsAndClassObjects"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classObject.kt")
@@ -478,7 +479,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class RealExamples extends AbstractResolvedCallsTest {
public void testAllFilesPresentInRealExamples() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/realExamples"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/realExamples"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("stringPlusInBuilders.kt")
@@ -493,7 +494,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Resolve extends AbstractResolvedCallsTest {
public void testAllFilesPresentInResolve() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/resolve"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/resolve"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("mostSpecificUninferredParam.kt")
@@ -514,7 +515,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class SecondaryConstructors extends AbstractResolvedCallsTest {
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classWithGenerics.kt")
@@ -607,7 +608,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ThisOrSuper extends AbstractResolvedCallsTest {
public void testAllFilesPresentInThisOrSuper() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/thisOrSuper"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/thisOrSuper"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("labeledSuper.kt")
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve.calls;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class)
public class ResolvedConstructorDelegationCallsTestsGenerated extends AbstractResolvedConstructorDelegationCallsTests {
public void testAllFilesPresentInResolveConstructorDelegationCalls() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classWithGenerics.kt")
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve.constants.evaluate;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -34,7 +35,7 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
@RunWith(JUnit3RunnerWithInners.class)
public static class Constant extends AbstractCompileTimeConstantEvaluatorTest {
public void testAllFilesPresentInConstant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/constant"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/constant"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classObjectProperty.kt")
@@ -169,7 +170,7 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
@RunWith(JUnit3RunnerWithInners.class)
public static class IsPure extends AbstractCompileTimeConstantEvaluatorTest {
public void testAllFilesPresentInIsPure() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/isPure"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/isPure"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("innerToType.kt")
@@ -208,7 +209,7 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
@RunWith(JUnit3RunnerWithInners.class)
public static class UsesVariableAsConstant extends AbstractCompileTimeConstantEvaluatorTest {
public void testAllFilesPresentInUsesVariableAsConstant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/usesVariableAsConstant"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/usesVariableAsConstant"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("binaryTypes.kt")
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve.constraintSystem;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -32,7 +33,7 @@ import java.util.regex.Pattern;
@RunWith(JUnit3RunnerWithInners.class)
public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest {
public void testAllFilesPresentInConstraintSystem() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("compiler/testData/constraintSystem/checkStatus")
@@ -40,7 +41,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class CheckStatus extends AbstractConstraintSystemTest {
public void testAllFilesPresentInCheckStatus() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/checkStatus"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/checkStatus"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("conflictingConstraints.constraints")
@@ -73,7 +74,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class ComputeValues extends AbstractConstraintSystemTest {
public void testAllFilesPresentInComputeValues() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/computeValues"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/computeValues"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("contradiction.constraints")
@@ -106,7 +107,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class IntegerValueTypes extends AbstractConstraintSystemTest {
public void testAllFilesPresentInIntegerValueTypes() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/integerValueTypes"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/integerValueTypes"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("byteOverflow.constraints")
@@ -163,7 +164,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class SeveralVariables extends AbstractConstraintSystemTest {
public void testAllFilesPresentInSeveralVariables() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("simpleDependency.constraints")
@@ -207,7 +208,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Direct extends AbstractConstraintSystemTest {
public void testAllFilesPresentInDirect() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("compiler/testData/constraintSystem/severalVariables/direct/contravariant")
@@ -215,7 +216,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Contravariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInContravariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/contravariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/contravariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -278,7 +279,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Covariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInCovariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/covariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/covariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -341,7 +342,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Invariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInInvariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/invariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/invariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -405,7 +406,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Interdependency extends AbstractConstraintSystemTest {
public void testAllFilesPresentInInterdependency() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/interdependency"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/interdependency"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("interdependency1.constraints")
@@ -432,7 +433,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Nullable extends AbstractConstraintSystemTest {
public void testAllFilesPresentInNullable() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("compiler/testData/constraintSystem/severalVariables/nullable/contravariant")
@@ -440,7 +441,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Contravariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInContravariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/contravariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/contravariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -503,7 +504,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Covariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInCovariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/covariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/covariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -566,7 +567,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Invariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInInvariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/invariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/invariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -630,7 +631,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Other extends AbstractConstraintSystemTest {
public void testAllFilesPresentInOther() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/other"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/other"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("constraintForNullables.constraints")
@@ -711,7 +712,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Recursive extends AbstractConstraintSystemTest {
public void testAllFilesPresentInRecursive() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/recursive"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/recursive"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("implicitlyRecursive.constraints")
@@ -744,7 +745,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Reversed extends AbstractConstraintSystemTest {
public void testAllFilesPresentInReversed() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("compiler/testData/constraintSystem/severalVariables/reversed/contravariant")
@@ -752,7 +753,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Contravariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInContravariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/contravariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/contravariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -815,7 +816,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Covariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInCovariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/covariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/covariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -878,7 +879,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Invariant extends AbstractConstraintSystemTest {
public void testAllFilesPresentInInvariant() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/invariant"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/invariant"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("varEqDepEq.constraints")
@@ -943,7 +944,7 @@ public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest
@RunWith(JUnit3RunnerWithInners.class)
public static class Variance extends AbstractConstraintSystemTest {
public void testAllFilesPresentInVariance() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/variance"), Pattern.compile("^(.+)\\.constraints$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/constraintSystem/variance"), Pattern.compile("^(.+)\\.constraints$"), TargetBackend.ANY, true);
}
@TestMetadata("consumer.constraints")