Class/Object

zio.test.mock

Capability

Related Docs: object Capability | package mock

Permalink

abstract class Capability[R <: Has[_], I, E, A] extends Base[R]

A Capability[R, I, E, A] represents a capability of environment R that takes an input I and returns an effect that may fail witn an error E or produce a single A.

To represent polymorphic capabilities you must use one of lazy Capability.Poly types which allow you to delay the declaration of some types to call site.

To construct capability tags you should start by creating a Mock[R] and extend publicly available Effect, Method, Sink or Stream type members.

Attributes
protected
Self Type
Capability[R, I, E, A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Capability
  2. Base
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Capability(mock: Mock[R])(implicit arg0: zio.Tag[R], arg1: zio.Tag[I], arg2: zio.Tag[E], arg3: zio.Tag[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(returns: Result[I, E, A])(implicit ev: <:<[I, Unit]): Expectation[R]

    Permalink
    Annotations
    @silent( "is never used" )
  5. def apply(assertion: Assertion[I], result: Result[I, E, A])(implicit ev: =!=[I, Unit]): Expectation[R]

    Permalink
    Annotations
    @silent( "is never used" )
  6. def apply(assertion: Assertion[I])(implicit ev1: =!=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]

    Permalink
    Annotations
    @silent( "is never used" )
  7. def apply()(implicit ev1: =:=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]

    Permalink
    Annotations
    @silent( "is never used" )
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. val errorTag: zio.LightTypeTag

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. val id: UUID

    Permalink
    Definition Classes
    Base
  17. val inputTag: zio.LightTypeTag

    Permalink
  18. def isEqual[R0 <: Has[_], I0, E0, A0](that: Capability[R0, I0, E0, A0]): Boolean

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val mock: Mock[R]

    Permalink
    Definition Classes
    CapabilityBase
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. val outputTag: zio.LightTypeTag

    Permalink
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. val toString: String

    Permalink

    Render method fully qualified name.

    Render method fully qualified name.

    Definition Classes
    Base → AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Base[R]

Inherited from AnyRef

Inherited from Any

Ungrouped