Test classes regenerated with new data

This commit is contained in:
Andrey Breslav
2012-06-25 17:47:13 +02:00
parent 6632c6abfc
commit dea6c452a0
5 changed files with 62 additions and 40 deletions
@@ -0,0 +1,7 @@
namespace <root>
internal abstract trait TheTrait : jet.Any {
internal final object TheTrait.<no name provided> : jet.Any {
internal final /*constructor*/ fun <init>(): TheTrait.<no name provided>
}
}
@@ -0,0 +1,5 @@
enum class Test(a : Int) {
A : Test(0)
B(x : Int) : Test(x)
C : Test(0) {}
}
@@ -3,24 +3,24 @@ namespace <root>
// <namespace name="p"> // <namespace name="p">
namespace p namespace p
final class p.C : jet.Any { internal final class p.C : jet.Any {
final /*constructor*/ fun <init>(): p.C internal final fun f(): jet.Tuple0
final fun f(): jet.Tuple0 public final /*constructor*/ fun <init>(): p.C
} }
open class p.G</*0*/ T : jet.Any?> : jet.Any { internal open class p.G</*0*/ T : jet.Any?> : jet.Any {
final /*constructor*/ fun </*0*/ T : jet.Any?><init>(): p.G<T> internal final fun a(): jet.Tuple0
final fun a(): jet.Tuple0 internal open fun f(): T
open fun f(): T public final /*constructor*/ fun </*0*/ T : jet.Any?><init>(): p.G<T>
} }
final class p.G2</*0*/ E : jet.Any?> : p.G<E> { internal final class p.G2</*0*/ E : jet.Any?> : p.G<E> {
final /*constructor*/ fun </*0*/ E : jet.Any?><init>(): p.G2<E> internal final fun g(): E
final override /*1*/ fun a(): jet.Tuple0 internal final override /*1*/ fun a(): jet.Tuple0
open override /*1*/ fun f(): E internal open override /*1*/ fun f(): E
final fun g(): E public final /*constructor*/ fun </*0*/ E : jet.Any?><init>(): p.G2<E>
} }
final fun foo(): jet.Tuple0 internal final fun foo(): jet.Tuple0
final fun foo(/*0*/ a: p.C): jet.Tuple0 internal final fun foo(/*0*/ a: p.C): jet.Tuple0
// </namespace name="p"> // </namespace name="p">
final class A : jet.Any { internal final class A : jet.Any {
final /*constructor*/ fun <init>(): A public final /*constructor*/ fun <init>(): A
} }
@@ -68,16 +68,16 @@ public class LazyResolveDescriptorRendererTestGenerated {
doTest("compiler/testData/renderer/GlobalProperties.kt"); doTest("compiler/testData/renderer/GlobalProperties.kt");
} }
@Test
public void testInheritedMembersVisibility() throws Exception {
doTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
}
@Test @Test
public void testTupleTypes() throws Exception { public void testTupleTypes() throws Exception {
doTest("compiler/testData/renderer/TupleTypes.kt"); doTest("compiler/testData/renderer/TupleTypes.kt");
} }
@Test
public void testInheritedMembersVisibility() throws Exception {
doTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
}
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) { public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {
Set<String> methodNames = new HashSet<String>(); Set<String> methodNames = new HashSet<String>();
for (Method method : clazz.getDeclaredMethods()) { for (Method method : clazz.getDeclaredMethods()) {
@@ -538,12 +538,12 @@ public class LazyResolveNamespaceComparingTestGenerated {
public void testNsVar() throws Exception { public void testNsVar() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/NsVar.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/NsVar.kt");
} }
@Test @Test
public void testOverrideClassVal() throws Exception { public void testOverrideClassVal() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideClassVal.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideClassVal.kt");
} }
@Test @Test
public void testOverrideTraitVal() throws Exception { public void testOverrideTraitVal() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideTraitVal.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/prop/OverrideTraitVal.kt");
@@ -693,57 +693,57 @@ public class LazyResolveNamespaceComparingTestGenerated {
public void testTuple0() throws Exception { public void testTuple0() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/type/Tuple0.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/type/Tuple0.kt");
} }
@Test @Test
public void testInternalAbstractTraitMembersOverridden() throws Exception { public void testInternalAbstractTraitMembersOverridden() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalAbstractTraitMembersOverridden.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalAbstractTraitMembersOverridden.kt");
} }
@Test @Test
public void testInternalClass() throws Exception { public void testInternalClass() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalClass.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalClass.kt");
} }
@Test @Test
public void testInternalConstructor() throws Exception { public void testInternalConstructor() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalConstructor.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalConstructor.kt");
} }
@Test @Test
public void testInternalTopLevelMembers() throws Exception { public void testInternalTopLevelMembers() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTopLevelMembers.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTopLevelMembers.kt");
} }
@Test @Test
public void testInternalTraitMembers() throws Exception { public void testInternalTraitMembers() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTraitMembers.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTraitMembers.kt");
} }
@Test @Test
public void testInternalTraitMembersInherited() throws Exception { public void testInternalTraitMembersInherited() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTraitMembersInherited.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalTraitMembersInherited.kt");
} }
@Test @Test
public void testPrivateClass() throws Exception { public void testPrivateClass() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateClass.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateClass.kt");
} }
@Test @Test
public void testPrivateTopLevelFun() throws Exception { public void testPrivateTopLevelFun() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateTopLevelFun.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateTopLevelFun.kt");
} }
@Test @Test
public void testPrivateTopLevelVal() throws Exception { public void testPrivateTopLevelVal() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateTopLevelVal.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/PrivateTopLevelVal.kt");
} }
@Test @Test
public void testTopLevelVarWithPrivateSetter() throws Exception { public void testTopLevelVarWithPrivateSetter() throws Exception {
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/TopLevelVarWithPrivateSetter.kt"); doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/TopLevelVarWithPrivateSetter.kt");
} }
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) { public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {
Set<String> methodNames = new HashSet<String>(); Set<String> methodNames = new HashSet<String>();
for (Method method : clazz.getDeclaredMethods()) { for (Method method : clazz.getDeclaredMethods()) {
@@ -847,12 +847,12 @@ public class LazyResolveNamespaceComparingTestGenerated {
public void testFinalFieldAsVal() throws Exception { public void testFinalFieldAsVal() throws Exception {
doTestSinglePackage("compiler/testData/readJavaBinaryClass/FinalFieldAsVal.kt"); doTestSinglePackage("compiler/testData/readJavaBinaryClass/FinalFieldAsVal.kt");
} }
@Test @Test
public void testInnerClass() throws Exception { public void testInnerClass() throws Exception {
doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClass.kt"); doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClass.kt");
} }
@Test @Test
public void testInnerClassesInGeneric() throws Exception { public void testInnerClassesInGeneric() throws Exception {
doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClassesInGeneric.kt"); doTestSinglePackage("compiler/testData/readJavaBinaryClass/InnerClassesInGeneric.kt");
@@ -1028,13 +1028,23 @@ public class LazyResolveNamespaceComparingTestGenerated {
} }
@Test @Test
public void testGenericFunction() throws Exception { public void testClassObject() throws Exception {
doTest("compiler/testData/lazyResolve/genericFunction.kt"); doTest("compiler/testData/lazyResolve/descriptorRenderer/ClassObject.kt");
} }
@Test
public void testEnum() throws Exception {
doTest("compiler/testData/lazyResolve/namespaceComparator/enum.kt");
}
@Test
public void testGenericFunction() throws Exception {
doTest("compiler/testData/lazyResolve/namespaceComparator/genericFunction.kt");
}
@Test @Test
public void testSimpleClass() throws Exception { public void testSimpleClass() throws Exception {
doTest("compiler/testData/lazyResolve/simpleClass.kt"); doTest("compiler/testData/lazyResolve/namespaceComparator/simpleClass.kt");
} }
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) { public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {