Move data tests to jvm to avoid random failings on native

This commit is contained in:
Alexander Nozik 2024-04-27 09:47:08 +03:00
parent 28f4beb348
commit f840ffb473
3 changed files with 2 additions and 6 deletions

View File

@ -79,7 +79,7 @@ public fun MetaDescriptor.Companion.forClass(
is DescriptorUrl -> loadDescriptorFromUrl(URL(it.url)) is DescriptorUrl -> loadDescriptorFromUrl(URL(it.url))
} }
} }
kClass.memberProperties.forEach { property-> kClass.memberProperties.forEach { property ->
var flag = false var flag = false
@ -88,11 +88,6 @@ public fun MetaDescriptor.Companion.forClass(
(property.returnType.classifier as? KClass<*>)?.let { (property.returnType.classifier as? KClass<*>)?.let {
from(forClass(it)) from(forClass(it))
} }
//
// (property.getDelegate(Unit) as? MetaDelegate<*>)?.descriptor?.let {
// from(it)
// flag = true
// }
property.annotations.forEach { property.annotations.forEach {
when (it) { when (it) {

View File

@ -47,6 +47,7 @@ public class MetaDescriptorBuilder @PublishedApi internal constructor() {
): Unit { ): Unit {
when (name.length) { when (name.length) {
0 -> error("Can't set descriptor to root") 0 -> error("Can't set descriptor to root")
1 -> { 1 -> {
children[name.first().body] = descriptorBuilder children[name.first().body] = descriptorBuilder
} }