//arrow-meta-test/arrow.meta.plugin.testing/AssertSyntax/evalsTo

evalsTo

[jvm]
open fun Code.Source.evalsTo(value: Any?, onError: (Throwable) -> Any? = { throw it }): Assert.SingleAssert

Checks if a code snippet evals to a provided value after the compilation. This operation loads all the generated classes and run the code snippet by reflection.

Parameters

jvm

   
value Expected result after running the code snippet.

Do you like Arrow?

Arrow Org
<