Trait/Object

zio.test.mock

MockSpec

Related Docs: object MockSpec | package mock

Permalink

sealed trait MockSpec[-R, +E, +A] extends AnyRef

Self Type
MockSpec[R, E, A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockSpec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 &&&[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]

    Permalink

    Sequentially zips this specification with another, combining the results into a tuple.

  4. final def *>[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]

    Permalink

    A variant of flatMap that ignores the value produced by this mock specification.

  5. final def <*[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, A]

    Permalink

    Sequences the given mock specification after this specification, but ignores the value produced by the it.

  6. final def <*>[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]

    Permalink

    Alias for &&&.

  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def >>=[R1 <: R, E1 >: E, B](k: (A) ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]

    Permalink

    Alias for flatMap.

    Alias for flatMap.

    val mockSpec = MockSpec.expectOut_(Console.Service.GetStrLn)("foo") >>= { input => MockSpec.expectIn(Console.Service.PutStrLn)(equalTo(input)) }
  9. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def flatMap[R1 <: R, E1 >: E, B](k: (A) ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]

    Permalink

    Returns a mock specification that models the expectations for execution of mock, followed by the passing of its value to the specified continuation function k, followed by the specification that it returns.

    Returns a mock specification that models the expectations for execution of mock, followed by the passing of its value to the specified continuation function k, followed by the specification that it returns.

    val mockSpec = MockSpec.expectOut_(Console.Service.GetStrLn)("foo").flatMap(input => MockSpec.expectIn(Console.Service.PutStrLn)(equalTo(input)))
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def managedEnv[R1 <: R](implicit mockable: Mockable[R1]): Managed[Nothing, R1]

    Permalink

    Creates a mock service for this specification and lifts it into ZManaged.

  19. final def map[B](f: (A) ⇒ B): MockSpec[R, E, B]

    Permalink

    Returns a mock specification whose success is mapped by the specified f function.

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def zip[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]

    Permalink

    A named alias for &&& or <*>.

  29. final def zipLeft[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, A]

    Permalink

    A named alias for <*.

  30. final def zipRight[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]

    Permalink

    A named alias for *>.

Inherited from AnyRef

Inherited from Any

Ungrouped