MockState

harness.sql.mock.MockState
See theMockState companion object
final class MockState[E, A](val ref: Synchronized[A])(implicit val errorMapper: ErrorMapper[Throwable, E])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

inline def focusAndUpdate[B](inline focus: A => B)(f: B => Task[B]): IO[E, Unit]
inline def focusAndUpdateW[B](inline focus: A => B)(f: (A, B) => Task[B]): IO[E, Unit]
def getWith[B](f: A => Task[B]): IO[E, B]
def update(f: A => Task[A]): IO[E, Unit]

Concrete fields

val get: UIO[A]

Implicits

Implicits

implicit val errorMapper: ErrorMapper[Throwable, E]