Provides a nice syntax for asserting things are equal, that is pretty enough to embed in documentation and examples
Used to specify a retry-interval for the eventually
and
continually
asserts.
Used to specify a maximum retry duration for the eventually
and continually
asserts.
Macro implementation that provides rich error message for boolean expression assertion.
Asserts which only make sense when running on multiple threads.
Macro implementation to take a block of code and trace through it, converting it into an AssertEntry and inserting debug loggers.
Checks that one or more expressions are true; otherwises raises an exception with some debugging info
Checks that one or more expressions are true; otherwises raises an exception with some debugging info
Shorthand to quickly throw a utest.
Shorthand to quickly throw a utest.AssertionError, together with all the macro-debugging goodness
Asserts that the given value matches the PartialFunction.
Asserts that the given value matches the PartialFunction. Useful for using pattern matching to validate the shape of a data structure.
Asserts that the given expression fails to compile, and returns a framework.CompileError containing the message of the failure.
Asserts that the given expression fails to compile, and returns a framework.CompileError containing the message of the failure. If the expression compile successfully, this macro itself will raise a compilation error.
Checks that one or more expressions all remain true within a certain period of time.
Checks that one or more expressions all remain true within a certain period of time. Polls at a regular interval to check this.
Checks that one or more expressions all become true within a certain period of time.
Checks that one or more expressions all become true within a certain period of time. Polls at a regular interval to check this.
Executes this AssertEntry and returns a successful result or dies in case of failure.
Executes this AssertEntry and returns a successful result or dies in case of failure. Even on success, it returns a die() function you can call to manually throw and exception later if the result displeases you.
Asserts that the given block raises the expected exception.
Asserts that the given block raises the expected exception. The exception
is returned if raised, and an AssertionError
is raised if the expected
exception does not appear.
Executes this AssertEntry and returns the raw results
Macro powered
assert
s of all shapes and sizes. These asserts all use macros to capture the names, types and values of variables used within them, so you get nice error messages for free.