utest

asserts

package asserts

Macro powered asserts 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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. asserts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type AssertEntry[T] = (String, ((LoggedValue) ⇒ Unit) ⇒ T)

  2. implicit class AssertEntryExt[T] extends AnyRef

  3. case class RetryInterval(d: FiniteDuration) extends Product with Serializable

    Used to specify a retry-interval for the eventually and continually asserts.

  4. case class RetryMax(d: FiniteDuration) extends Product with Serializable

    Used to specify a maximum retry duration for the eventually and continually asserts.

Value Members

  1. object Asserts

    Macro implementation that provides rich error message for boolean expression assertion.

  2. object Parallel

    Asserts which only make sense when running on multiple threads.

  3. object Tracer

    Macro implementation to take a block of code and trace through it, converting it into an AssertEntry and inserting debug loggers.

  4. def assertError(msgPrefix: String, logged: Seq[LoggedValue], cause: Throwable = null): Nothing

    Shorthand to quickly throw a utest.

    Shorthand to quickly throw a utest.AssertionError, together with all the macro-debugging goodness

Inherited from AnyRef

Inherited from Any

Ungrouped