[KLIB tool] Run tests for 'dump-metadata' with & without signatures

This commit is contained in:
Dmitriy Dolovov
2023-10-23 22:47:53 +02:00
committed by Space Team
parent aa9b901926
commit 88a297b022
78 changed files with 1888 additions and 13 deletions
@@ -0,0 +1,18 @@
package test {
// Signature: test/AnnotationArray|null[0]
annotation class AnnotationArray constructor(annotationArray: Array<JustAnnotation>) : Annotation {
// Signature: test/AnnotationArray.annotationArray|8313552415425816993[0]
val annotationArray: Array<JustAnnotation>
}
// Signature: test/C1|null[0]
@JustAnnotation(annotation = Empty) @AnnotationArray(annotationArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@AnnotationArray(annotationArray = {JustAnnotation(annotation = Empty), JustAnnotation(annotation = Empty)}) class C2 constructor()
// Signature: test/Empty|null[0]
annotation class Empty constructor() : Annotation
// Signature: test/JustAnnotation|null[0]
annotation class JustAnnotation constructor(annotation: Empty) : Annotation {
// Signature: test/JustAnnotation.annotation|-5849805091355678126[0]
val annotation: Empty
}
}
@@ -0,0 +1,18 @@
package test {
// Signature: test/AnnotationArray|null[0]
annotation class AnnotationArray constructor(annotationArray: Array<JustAnnotation>) : Annotation {
// Signature: test/AnnotationArray.annotationArray|{}annotationArray[0]
val annotationArray: Array<JustAnnotation>
}
// Signature: test/C1|null[0]
@JustAnnotation(annotation = Empty) @AnnotationArray(annotationArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@AnnotationArray(annotationArray = {JustAnnotation(annotation = Empty), JustAnnotation(annotation = Empty)}) class C2 constructor()
// Signature: test/Empty|null[0]
annotation class Empty constructor() : Annotation
// Signature: test/JustAnnotation|null[0]
annotation class JustAnnotation constructor(annotation: Empty) : Annotation {
// Signature: test/JustAnnotation.annotation|{}annotation[0]
val annotation: Empty
}
}
@@ -0,0 +1,25 @@
package test {
// Signature: test/C1|null[0]
@JustEnum(weapon = Weapon.SCISSORS) @EnumArray(enumArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@EnumArray(enumArray = {Weapon.PAPER, Weapon.ROCK}) class C2 constructor()
// Signature: test/EnumArray|null[0]
annotation class EnumArray constructor(enumArray: Array<Weapon>) : Annotation {
// Signature: test/EnumArray.enumArray|-1032102509447694281[0]
val enumArray: Array<Weapon>
}
// Signature: test/JustEnum|null[0]
annotation class JustEnum constructor(weapon: Weapon) : Annotation {
// Signature: test/JustEnum.weapon|187372160426561863[0]
val weapon: Weapon
}
// Signature: test/Weapon|null[0]
enum class Weapon private constructor() : Enum<Weapon> {
// Signature: test/Weapon.ROCK|null[0]
enum entry ROCK
// Signature: test/Weapon.PAPER|null[0]
enum entry PAPER
// Signature: test/Weapon.SCISSORS|null[0]
enum entry SCISSORS
}
}
@@ -0,0 +1,25 @@
package test {
// Signature: test/C1|null[0]
@JustEnum(weapon = Weapon.SCISSORS) @EnumArray(enumArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@EnumArray(enumArray = {Weapon.PAPER, Weapon.ROCK}) class C2 constructor()
// Signature: test/EnumArray|null[0]
annotation class EnumArray constructor(enumArray: Array<Weapon>) : Annotation {
// Signature: test/EnumArray.enumArray|{}enumArray[0]
val enumArray: Array<Weapon>
}
// Signature: test/JustEnum|null[0]
annotation class JustEnum constructor(weapon: Weapon) : Annotation {
// Signature: test/JustEnum.weapon|{}weapon[0]
val weapon: Weapon
}
// Signature: test/Weapon|null[0]
enum class Weapon private constructor() : Enum<Weapon> {
// Signature: test/Weapon.ROCK|null[0]
enum entry ROCK
// Signature: test/Weapon.PAPER|null[0]
enum entry PAPER
// Signature: test/Weapon.SCISSORS|null[0]
enum entry SCISSORS
}
}
@@ -0,0 +1,25 @@
package test {
// Signature: test/C1|null[0]
@PrimitiveArrays(booleanArray = {true, false, true}, byteArray = {-7.toByte(), 7.toByte()}, charArray = {\u0025 ('%'), \u007A ('z')}, doubleArray = {-3.14.toDouble()}, floatArray = {2.72.toFloat(), 0.0.toFloat()}, intArray = {239017, -1}, longArray = {123456789123456789.toLong()}, shortArray = {239.toShort()}) class C1 constructor()
// Signature: test/C2|null[0]
@PrimitiveArrays(booleanArray = {}, byteArray = {}, charArray = {}, doubleArray = {}, floatArray = {}, intArray = {}, longArray = {}, shortArray = {}) class C2 constructor()
// Signature: test/PrimitiveArrays|null[0]
annotation class PrimitiveArrays constructor(byteArray: ByteArray, charArray: CharArray, shortArray: ShortArray, intArray: IntArray, longArray: LongArray, floatArray: FloatArray, doubleArray: DoubleArray, booleanArray: BooleanArray) : Annotation {
// Signature: test/PrimitiveArrays.booleanArray|7605527965651232515[0]
val booleanArray: BooleanArray
// Signature: test/PrimitiveArrays.byteArray|-2314777124899298189[0]
val byteArray: ByteArray
// Signature: test/PrimitiveArrays.charArray|-5349931751208968301[0]
val charArray: CharArray
// Signature: test/PrimitiveArrays.doubleArray|-3027997348205759511[0]
val doubleArray: DoubleArray
// Signature: test/PrimitiveArrays.floatArray|-863616440006860352[0]
val floatArray: FloatArray
// Signature: test/PrimitiveArrays.intArray|-5845507301569286943[0]
val intArray: IntArray
// Signature: test/PrimitiveArrays.longArray|-261136028309834719[0]
val longArray: LongArray
// Signature: test/PrimitiveArrays.shortArray|3516401755230006906[0]
val shortArray: ShortArray
}
}
@@ -0,0 +1,25 @@
package test {
// Signature: test/C1|null[0]
@PrimitiveArrays(booleanArray = {true, false, true}, byteArray = {-7.toByte(), 7.toByte()}, charArray = {\u0025 ('%'), \u007A ('z')}, doubleArray = {-3.14.toDouble()}, floatArray = {2.72.toFloat(), 0.0.toFloat()}, intArray = {239017, -1}, longArray = {123456789123456789.toLong()}, shortArray = {239.toShort()}) class C1 constructor()
// Signature: test/C2|null[0]
@PrimitiveArrays(booleanArray = {}, byteArray = {}, charArray = {}, doubleArray = {}, floatArray = {}, intArray = {}, longArray = {}, shortArray = {}) class C2 constructor()
// Signature: test/PrimitiveArrays|null[0]
annotation class PrimitiveArrays constructor(byteArray: ByteArray, charArray: CharArray, shortArray: ShortArray, intArray: IntArray, longArray: LongArray, floatArray: FloatArray, doubleArray: DoubleArray, booleanArray: BooleanArray) : Annotation {
// Signature: test/PrimitiveArrays.booleanArray|{}booleanArray[0]
val booleanArray: BooleanArray
// Signature: test/PrimitiveArrays.byteArray|{}byteArray[0]
val byteArray: ByteArray
// Signature: test/PrimitiveArrays.charArray|{}charArray[0]
val charArray: CharArray
// Signature: test/PrimitiveArrays.doubleArray|{}doubleArray[0]
val doubleArray: DoubleArray
// Signature: test/PrimitiveArrays.floatArray|{}floatArray[0]
val floatArray: FloatArray
// Signature: test/PrimitiveArrays.intArray|{}intArray[0]
val intArray: IntArray
// Signature: test/PrimitiveArrays.longArray|{}longArray[0]
val longArray: LongArray
// Signature: test/PrimitiveArrays.shortArray|{}shortArray[0]
val shortArray: ShortArray
}
}
@@ -0,0 +1,23 @@
package test {
// Signature: test/C|null[0]
@Primitives(boolean = true, byte = 7.toByte(), char = \u0025 ('%'), double = -3.14.toDouble(), float = 2.72.toFloat(), int = 239017, long = 123456789123456789.toLong(), short = 239.toShort()) class C constructor()
// Signature: test/Primitives|null[0]
annotation class Primitives constructor(byte: Byte, char: Char, short: Short, int: Int, long: Long, float: Float, double: Double, boolean: Boolean) : Annotation {
// Signature: test/Primitives.boolean|-4261332457766342551[0]
val boolean: Boolean
// Signature: test/Primitives.byte|-96849965763790584[0]
val byte: Byte
// Signature: test/Primitives.char|-1670337955414892634[0]
val char: Char
// Signature: test/Primitives.double|2356391280675975773[0]
val double: Double
// Signature: test/Primitives.float|3027698144133593704[0]
val float: Float
// Signature: test/Primitives.int|4038882325283937173[0]
val int: Int
// Signature: test/Primitives.long|-3528812958611327186[0]
val long: Long
// Signature: test/Primitives.short|2683753303457941763[0]
val short: Short
}
}
@@ -0,0 +1,23 @@
package test {
// Signature: test/C|null[0]
@Primitives(boolean = true, byte = 7.toByte(), char = \u0025 ('%'), double = -3.14.toDouble(), float = 2.72.toFloat(), int = 239017, long = 123456789123456789.toLong(), short = 239.toShort()) class C constructor()
// Signature: test/Primitives|null[0]
annotation class Primitives constructor(byte: Byte, char: Char, short: Short, int: Int, long: Long, float: Float, double: Double, boolean: Boolean) : Annotation {
// Signature: test/Primitives.boolean|{}boolean[0]
val boolean: Boolean
// Signature: test/Primitives.byte|{}byte[0]
val byte: Byte
// Signature: test/Primitives.char|{}char[0]
val char: Char
// Signature: test/Primitives.double|{}double[0]
val double: Double
// Signature: test/Primitives.float|{}float[0]
val float: Float
// Signature: test/Primitives.int|{}int[0]
val int: Int
// Signature: test/Primitives.long|{}long[0]
val long: Long
// Signature: test/Primitives.short|{}short[0]
val short: Short
}
}
@@ -0,0 +1,16 @@
package test {
// Signature: test/C1|null[0]
@JustString(string = "kotlin") @StringArray(stringArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@StringArray(stringArray = {"java", ""}) class C2 constructor()
// Signature: test/JustString|null[0]
annotation class JustString constructor(string: String) : Annotation {
// Signature: test/JustString.string|-528183805128847417[0]
val string: String
}
// Signature: test/StringArray|null[0]
annotation class StringArray constructor(stringArray: Array<String>) : Annotation {
// Signature: test/StringArray.stringArray|3224078221487065108[0]
val stringArray: Array<String>
}
}
@@ -0,0 +1,16 @@
package test {
// Signature: test/C1|null[0]
@JustString(string = "kotlin") @StringArray(stringArray = {}) class C1 constructor()
// Signature: test/C2|null[0]
@StringArray(stringArray = {"java", ""}) class C2 constructor()
// Signature: test/JustString|null[0]
annotation class JustString constructor(string: String) : Annotation {
// Signature: test/JustString.string|{}string[0]
val string: String
}
// Signature: test/StringArray|null[0]
annotation class StringArray constructor(stringArray: Array<String>) : Annotation {
// Signature: test/StringArray.stringArray|{}stringArray[0]
val stringArray: Array<String>
}
}
@@ -0,0 +1,18 @@
package test {
// Signature: test/My|null[0]
enum class My private constructor() : Enum<My> {
// Signature: test/My.ALPHA|null[0]
enum entry ALPHA
// Signature: test/My.BETA|null[0]
enum entry BETA
// Signature: test/My.OMEGA|null[0]
enum entry OMEGA
}
// Signature: test/ann|null[0]
annotation class ann constructor(vararg m: My) : Annotation {
// Signature: test/ann.m|1584387991504031144[0]
val m: Array<out My>
}
// Signature: test/annotated|null[0]
@ann(m = {My.ALPHA, My.BETA}) annotation class annotated constructor() : Annotation
}
@@ -0,0 +1,18 @@
package test {
// Signature: test/My|null[0]
enum class My private constructor() : Enum<My> {
// Signature: test/My.ALPHA|null[0]
enum entry ALPHA
// Signature: test/My.BETA|null[0]
enum entry BETA
// Signature: test/My.OMEGA|null[0]
enum entry OMEGA
}
// Signature: test/ann|null[0]
annotation class ann constructor(vararg m: My) : Annotation {
// Signature: test/ann.m|{}m[0]
val m: Array<out My>
}
// Signature: test/annotated|null[0]
@ann(m = {My.ALPHA, My.BETA}) annotation class annotated constructor() : Annotation
}