Update spec black box tests

This commit is contained in:
Victor Petukhov
2021-07-23 16:25:03 +03:00
committed by Mikhael Bogdanov
parent baaa615e09
commit cba224b7b8
32 changed files with 505 additions and 116 deletions
@@ -7483,6 +7483,78 @@ public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpe
}
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects")
@TestDataPath("$PROJECT_ROOT")
public class Objects {
@Test
public void testAllFilesPresentInObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance")
@TestDataPath("$PROJECT_ROOT")
public class Inheritance {
@Test
public void testAllFilesPresentInInheritance() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg")
@TestDataPath("$PROJECT_ROOT")
public class Neg {
@Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/1.kt");
}
@Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/2.kt");
}
@Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/3.kt");
}
@Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/4.kt");
}
@Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/5.kt");
}
@Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/6.kt");
}
@Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/7.kt");
}
@Test
public void testAllFilesPresentInNeg() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution")
@TestDataPath("$PROJECT_ROOT")
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(13.kt)
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_14Kt.box(14.kt:17)
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_15Kt.box(15.kt:17)
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(16.kt)
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(17.kt)
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_18Kt.box(18.kt:17)
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_19Kt.box(19.kt:17)
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 16
* NUMBER: 1
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 1
open class Foo(val prop: Int) {
companion object : Foo(prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 1
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 1
open class Foo(val prop: Int) {
companion object : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo(42) == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object Companion : Foo {
private constructor Companion()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 14
* NUMBER: 2
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 2
open class Foo(val prop: Int) {
companion object MyCompanion : Foo(Foo.prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 2
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 2
open class Foo(val prop: Int) {
companion object MyCompanion : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>Foo.<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!><!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo(42) == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object MyCompanion : Foo {
private constructor MyCompanion()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 15
* NUMBER: 3
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 3
open class Foo(val prop: Int) {
object MyObject : Foo(MyObject.prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 3
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 3
open class Foo(val prop: Int) {
object MyObject : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>MyObject.<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!><!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo.MyObject == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public object MyObject : Foo {
private constructor MyObject()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 13
* NUMBER: 4
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 4
open class Foo(val prop: Int) {
companion object : Foo(prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 4
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 4
open class Foo(val prop: Int) {
companion object : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo(42) == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object Companion : Foo {
private constructor Companion()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 17
* NUMBER: 5
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 5
open class Foo(val prop: Int) {
companion object : Foo(this.prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 5
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 5
open class Foo(val prop: Int) {
companion object : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>this.<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!><!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo(42) == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object Companion : Foo {
private constructor Companion()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 18
* NUMBER: 6
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 6
open class Foo(val prop: Int) {
companion object : Foo(Companion.prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 6
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 6
open class Foo(val prop: Int) {
companion object : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>Companion.<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!><!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo(42) == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object Companion : Foo {
private constructor Companion()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -1,14 +1,13 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 19
* NUMBER: 7
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
// TESTCASE NUMBER: 7
open class Foo(val prop: Int) {
object MyObject : Foo(MyObject.prop)
}
@@ -0,0 +1,19 @@
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 7
* DESCRIPTION: Access to class members in the super constructor call of an object.
* ISSUES: KT-25289
*/
// TESTCASE NUMBER: 7
open class Foo(val prop: Int) {
object MyObject : Foo(<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>MyObject.<!SELF_CALL_IN_NESTED_OBJECT_CONSTRUCTOR!>prop<!><!>)
}
fun box(): String? {
if (<!SENSELESS_COMPARISON!>Foo.MyObject == null<!>) return null
return "OK"
}
@@ -0,0 +1,19 @@
package
public fun box(): kotlin.String?
public open class Foo {
public constructor Foo(/*0*/ prop: kotlin.Int)
public final val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public object MyObject : Foo {
private constructor MyObject()
public final override /*1*/ /*fake_override*/ val prop: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -7962,6 +7962,80 @@ public class DiagnosticsTestSpecGenerated extends AbstractDiagnosticsTestSpec {
}
}
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Objects extends AbstractDiagnosticsTestSpec {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Inheritance extends AbstractDiagnosticsTestSpec {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInheritance() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Neg extends AbstractDiagnosticsTestSpec {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/1.kt");
}
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/2.kt");
}
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/3.kt");
}
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/4.kt");
}
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/5.kt");
}
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/6.kt");
}
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/7.kt");
}
public void testAllFilesPresentInNeg() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -4429,41 +4429,6 @@ public class BlackBoxCodegenTestSpecGenerated extends AbstractBlackBoxCodegenTes
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/12.kt");
}
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/13.kt");
}
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/14.kt");
}
@TestMetadata("15.kt")
public void test15() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/15.kt");
}
@TestMetadata("16.kt")
public void test16() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/16.kt");
}
@TestMetadata("17.kt")
public void test17() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/17.kt");
}
@TestMetadata("18.kt")
public void test18() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/18.kt");
}
@TestMetadata("19.kt")
public void test19() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/19.kt");
}
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/2.kt");
@@ -7483,6 +7483,78 @@ public class FirIdeSpecTest extends AbstractDiagnosisCompilerTestDataSpecTest {
}
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects")
@TestDataPath("$PROJECT_ROOT")
public class Objects {
@Test
public void testAllFilesPresentInObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance")
@TestDataPath("$PROJECT_ROOT")
public class Inheritance {
@Test
public void testAllFilesPresentInInheritance() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg")
@TestDataPath("$PROJECT_ROOT")
public class Neg {
@Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/1.kt");
}
@Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/2.kt");
}
@Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/3.kt");
}
@Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/4.kt");
}
@Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/5.kt");
}
@Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/6.kt");
}
@Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg/7.kt");
}
@Test
public void testAllFilesPresentInNeg() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/objects/inheritance/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
@Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution")
@TestDataPath("$PROJECT_ROOT")