Enforce bytecode-only compilation in tests
This commit is contained in:
1 parent
490faea2ba
commit
9a15470cdb
45 files changed
+152
-62
No files matched your search
@@ -21,11 +21,13 @@ import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.binding.Binder
|
||||
import net.sergeych.lyng.binding.SymbolKind
|
||||
import net.sergeych.lyng.miniast.MiniAstBuilder
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class BindingHighlightTest {
|
||||
|
||||
private suspend fun compileWithMini(code: String): Pair<Script, MiniAstBuilder> {
|
||||
|
||||
@@ -23,11 +23,13 @@ package net.sergeych.lyng
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.binding.Binder
|
||||
import net.sergeych.lyng.miniast.MiniAstBuilder
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class BindingTest {
|
||||
|
||||
private suspend fun bind(code: String): net.sergeych.lyng.binding.BindingSnapshot {
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import net.sergeych.lyng.obj.ObjInt
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFails
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class BitwiseTest {
|
||||
@Test
|
||||
fun bitwiseOperators_Int() = runTest {
|
||||
|
||||
@@ -42,9 +42,11 @@ import net.sergeych.lyng.obj.toBool
|
||||
import net.sergeych.lyng.obj.toDouble
|
||||
import net.sergeych.lyng.obj.toInt
|
||||
import net.sergeych.lyng.obj.toLong
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class CmdVmTest {
|
||||
@Test
|
||||
fun addsIntConstants() = kotlinx.coroutines.test.runTest {
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class TestCoroutines {
|
||||
|
||||
@Test
|
||||
@@ -185,4 +187,4 @@ class TestCoroutines {
|
||||
// }.toList())
|
||||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,11 +21,13 @@ import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.obj.*
|
||||
import net.sergeych.lynon.lynonDecodeAny
|
||||
import net.sergeych.lynon.lynonEncodeAny
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertIs
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class EmbeddingExceptionTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class IfNullAssignTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -21,8 +21,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class MIC3MroTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -21,10 +21,12 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertFails
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class MIDiagnosticsTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class MIQualifiedDispatchTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -23,10 +23,12 @@ import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.ExecutionError
|
||||
import net.sergeych.lyng.ScriptError
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFailsWith
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class MapLiteralTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -23,11 +23,13 @@ package net.sergeych.lyng
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.highlight.offsetOf
|
||||
import net.sergeych.lyng.miniast.*
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class MiniAstTest {
|
||||
|
||||
private suspend fun compileWithMini(code: String): Pair<Script, net.sergeych.lyng.miniast.MiniAstBuilder> {
|
||||
|
||||
@@ -22,9 +22,11 @@
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.ExecutionError
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertFailsWith
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class NamedArgsTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -22,10 +22,12 @@ import net.sergeych.lyng.eval
|
||||
import net.sergeych.lyng.obj.ObjInstance
|
||||
import net.sergeych.lyng.obj.ObjList
|
||||
import net.sergeych.lyng.toSource
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFails
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class OOTest {
|
||||
@Test
|
||||
fun testClassProps() = runTest {
|
||||
@@ -926,4 +928,4 @@ class OOTest {
|
||||
assertEquals(5, t.x)
|
||||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,11 @@ package net.sergeych.lyng
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lynon.lynonEncodeAny
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertFailsWith
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ObjectExpressionTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -21,8 +21,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ParallelLocalScopeTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -2,10 +2,12 @@ import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.ScriptError
|
||||
import net.sergeych.lyng.eval
|
||||
import net.sergeych.lyng.obj.toInt
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFailsWith
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ReturnStatementTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ScopeCycleRegressionTest {
|
||||
@Test
|
||||
fun instanceMethodCallDoesNotCycle() = runTest {
|
||||
|
||||
@@ -18,9 +18,11 @@
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.PerfFlags
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ScopePoolingRegressionTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -54,6 +54,7 @@ import kotlin.time.Instant
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ScriptTest {
|
||||
@Test
|
||||
fun testVersion() {
|
||||
|
||||
@@ -21,8 +21,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ScriptTest_OptionalAssign {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class StdlibTest {
|
||||
@Test
|
||||
fun testIterableFilter() = runTest {
|
||||
@@ -131,4 +133,4 @@ class StdlibTest {
|
||||
assertEquals(31, p.age)
|
||||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
/*
|
||||
@@ -36,6 +37,7 @@ import kotlin.test.Test
|
||||
*
|
||||
*/
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class TestInheritance {
|
||||
|
||||
@Test
|
||||
@@ -195,4 +197,4 @@ assertEquals(null, (buzz as? Foo)?.runA())
|
||||
""")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class TypesTest {
|
||||
|
||||
@Test
|
||||
@@ -90,4 +92,4 @@ class TypesTest {
|
||||
assertNotEquals(Point(0,1), Point(0,1).apply { c = 1 } )
|
||||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.eval
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ValReassignRegressionTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
package net.sergeych.lyng
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class DelegationTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package net.sergeych.lyng
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class OperatorOverloadingTest {
|
||||
@Test
|
||||
fun testBinaryOverloading() = runTest {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package net.sergeych.lyng
|
||||
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class PropsTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -24,11 +24,13 @@ import net.sergeych.lyng.obj.ObjNull
|
||||
import net.sergeych.lyng.obj.toBool
|
||||
import net.sergeych.lynon.lynonDecodeAny
|
||||
import net.sergeych.lynon.lynonEncodeAny
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFalse
|
||||
import kotlin.test.assertNotNull
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class TransientTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -20,9 +20,11 @@ package net.sergeych.lyng.miniast
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.sergeych.lyng.Compiler
|
||||
import net.sergeych.lyng.binding.Binder
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ParamTypeInferenceTest {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user