verify
package verify
Type members
Classlikes
final class CanceledException(val reason: Option[String], val location: Option[SourceLocation]) extends VerifyException
final class IgnoredException(val reason: Option[String], val location: Option[SourceLocation]) extends VerifyException
final class InterceptException(val message: String, val location: SourceLocation) extends VerifyException
case class Properties[I](setup: () => I, tearDown: I => Void, setupSuite: () => Unit, tearDownSuite: () => Unit, properties: Seq[TestSpec[I, Unit]])(ec: ExecutionContext) extends Iterable[TestSpec[Unit, Unit]]
final class UnexpectedException(val reason: Throwable, val location: SourceLocation) extends VerifyException
sealed abstract class Void
Replacement of Unit
.
Replacement of Unit
.
Scala automatically converts non-Unit
values into Unit
,
making it impossible to detect when users are actually
returning Unit
or not in their tests.
Void
on the other hand boxes any such value, such
that we can detect it in tests and deliver a meaningful
error.
- Companion
- object