PureharmTestRuntimeLazyConversions

Basically the problem is as such:

Basically the problem is as such:

  1. ideally, you probably want only one PureharmTestRuntime instantiated in your entire test run to not waste resources and startup time...
  2. and you want easy usage...

To achieve 2) we could make it a val runtime, and do import runtime._ in the tests, and all would be good!

But then 1) is impossible...

By doing this trick the runtime is instantiated as late as possible, and you get all the necessary imports in your tests usage as well!

Authors
Since

26 Jun 2020

class Object
trait Matchable
class Any

Implicits

Implicits

implicit def phrtToBL(phtr: PureharmTestRuntime): Blocker
implicit def phrtToBS(phtr: PureharmTestRuntime): BlockingShifter[IO]
implicit def phrtToCS(phtr: PureharmTestRuntime): ContextShift[IO]
implicit def phrtToEC(phtr: PureharmTestRuntime): ExecutionContext
implicit def phrtToTM(phtr: PureharmTestRuntime): Timer[IO]