cats.effect.laws.discipline

Type members

Classlikes

trait AsyncTests[F[_]] extends SyncTests[F]
Companion
object
object AsyncTests
Companion
class
trait BracketTests[F[_], E] extends MonadErrorTests[F, E]
Companion
object
object BracketTests
Companion
class
trait ConcurrentEffectTests[F[_]] extends ConcurrentTests[F] with EffectTests[F]
Companion
object
trait ConcurrentTests[F[_]] extends AsyncTests[F]
Companion
object
Companion
class
trait EffectTests[F[_]] extends AsyncTests[F]
Companion
object
object EffectTests
Companion
class
final case class Parameters(stackSafeIterationsCount: Int, allowNonTerminationLaws: Boolean)

Parameters that can be used for tweaking how the tests behave.

Parameters that can be used for tweaking how the tests behave.

Value Params
allowNonTerminationLaws

specifies if the laws that detect non-termination (e.g. IO.never) should be enabled or not. Default is true, however if the only way to detect non-termination is to block the thread with a timeout, then that makes tests really hard to evaluate, so it's best if they are disabled

stackSafeIterationsCount

specifies the number of iterations necessary in loops meant to prove stack safety; needed because these tests can be very heavy

Companion
object
object Parameters
Companion
class
trait SyncEffectTests[F[_]] extends SyncTests[F]
Companion
object
Companion
class
trait SyncTests[F[_]] extends BracketTests[F, Throwable]
Companion
object
object SyncTests
Companion
class
object arbitrary