All Downloads are FREE. Search and download functionalities are using the official Maven repository.

weaver.BaseIOSuites.scala Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
package weaver

import cats.effect.{ ContextShift, IO, Timer }

trait BaseIOSuite extends BaseCatsSuite { self: RunnableSuite[IO] =>
  implicit protected def effectCompat: UnsafeRun[EffectType] = CatsUnsafeRun
  def unsafeRun: UnsafeRun[EffectType]                       = CatsUnsafeRun
  final implicit protected def contextShift: ContextShift[IO] =
    effectCompat.contextShift
  final implicit protected def timer: Timer[IO] = effectCompat.timer
  def getSuite: EffectSuite[IO]                 = this
}

trait BaseFunIOSuite extends FunSuiteF[IO] with BaseCatsSuite {
  override implicit protected def effectCompat: UnsafeRun[EffectType] =
    CatsUnsafeRun
  def getSuite: EffectSuite[IO] = this
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy