[Wasm] PL tests implementation for Wasm target

Fixed #KT-58088
This commit is contained in:
Igor Yakovlev
2024-03-06 12:27:37 +01:00
committed by Space Team
parent 6b66195afc
commit 7c16528560
27 changed files with 900 additions and 37 deletions
@@ -27,6 +27,7 @@ private typealias Block<T> = () -> T
data class TestMode(
val isJs: Boolean = false,
val isNative: Boolean = false,
val isWasm: Boolean = false,
val staticCache: Scope = Scope.NOWHERE,
val lazyIr: Scope = Scope.NOWHERE
) {
@@ -39,7 +40,7 @@ data class TestMode(
}
init {
check(isJs xor isNative)
check(isJs xor isNative xor isWasm)
check(isNative || staticCache.notUsed)
check(isNative || lazyIr.notUsed)
}