//arrow-meta-test/arrow.meta.plugin.testing/AssertSyntax
interface AssertSyntax
Allows to provide expected behaviours.
CompilerTest.assert |
Companion |
Name | Summary |
---|---|
allOf | [jvm] open fun allOf(vararg elements: Assert.SingleAssert): Assert Allows to provide several Assert.SingleAssert. [jvm] open fun allOf(elements: List<Assert.SingleAssert>): Assert |
compilesWith | [jvm] open fun compilesWith(f: (String) -> Boolean): Assert.SingleAssert Checks that code snippet compiles successfully and (possible) warning message has a certain property. |
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. |
failsWith | [jvm] open fun failsWith(f: (String) -> Boolean): Assert.SingleAssert Checks both that code snippet fails and the error message has a certain property which is checked by a provided function. |
plus | [jvm] open operator fun Assert.SingleAssert.plus(other: Assert.SingleAssert): Assert Allows to provide several Assert.SingleAssert. |
Name | Summary |
---|---|
compiles | [jvm] abstract val compiles: Assert.SingleAssert Checks that code snippet compiles successfully. |
emptyAssert | [jvm] abstract val emptyAssert: Assert.SingleAssert |
fails | [jvm] abstract val fails: Assert.SingleAssert Checks that code snippet fails. |
source | [jvm] open val String.source: Code.Source Returns a Source object from a String. |
Do you like Arrow?
✖