Add some tests for kotlinx.serialization plugin:
- declaration checker - bytecode listings - JVM IR Improve @Transient redundant reporting
This commit is contained in:
+3
-1
@@ -24,7 +24,7 @@ abstract class AbstractAsmLikeInstructionListingTest : CodegenTestCase() {
|
||||
}
|
||||
|
||||
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
|
||||
val txtFile = File(wholeFile.parentFile, wholeFile.nameWithoutExtension + ".txt")
|
||||
val txtFile = File(wholeFile.parentFile, getExpectedTextFileName(wholeFile))
|
||||
compile(files)
|
||||
|
||||
val classes = classFileFactory
|
||||
@@ -46,6 +46,8 @@ abstract class AbstractAsmLikeInstructionListingTest : CodegenTestCase() {
|
||||
})
|
||||
}
|
||||
|
||||
protected open fun getExpectedTextFileName(wholeFile: File): String = wholeFile.nameWithoutExtension + ".txt"
|
||||
|
||||
private fun renderClassNode(clazz: ClassNode, showBytecodeForTheseMethods: List<String>, showLocalVariables: Boolean): String {
|
||||
val fields = (clazz.fields ?: emptyList()).sortedBy { it.name }
|
||||
val methods = (clazz.methods ?: emptyList()).sortedBy { it.name }
|
||||
|
||||
Reference in New Issue
Block a user