package mock
- Alphabetic
- By Inheritance
- mock
- BuildFromCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
BuildFrom[-From, -A, +C] = CanBuildFrom[From, A, C]
- Definition Classes
- BuildFromCompat
-
implicit
class
BuildFromOps[From, A, C] extends AnyRef
- Definition Classes
- BuildFromCompat
-
abstract
class
Capability[R, I, E, A] extends Base[R]
A
Capability[R, I, E, A]represents a capability of environmentRthat takes an inputIand returns an effect that may fail with an errorEor produce a singleA.A
Capability[R, I, E, A]represents a capability of environmentRthat takes an inputIand returns an effect that may fail with an errorEor produce a singleA.To represent polymorphic capabilities you must use one of lazy
Capability.Polytypes 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 availableEffect,Method,SinkorStreamtype members.- Attributes
- protected
-
sealed abstract
class
Expectation[R] extends AnyRef
An
Expectation[R]is an immutable tree structure that represents expectations on environmentR. -
abstract
class
Mock[R] extends AnyRef
A
Mock[R]represents a mockable environmentR. - abstract class MockSpecDefault extends ZIOSpecDefault
-
abstract
class
Proxy extends AnyRef
A
Proxyprovides the machinery to map mocked invocations to predefined results and check some constraints on the way. -
sealed abstract
class
Result[-I, +E, +A] extends AnyRef
A
Result[-I, +E, +A]represents the value or failure that will be returned by mock expectation when invoked. -
macro
class
mockable[A] extends Annotation with StaticAnnotation
- Annotations
- @compileTimeOnly( ... )
Value Members
-
object
BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object Capability
- object Expectation
- object Mock
- object MockClock extends Mock[Clock]
- object MockConsole extends Mock[Console]
- object MockRandom extends Mock[Random]
- object MockReporter
- object MockSystem extends Mock[System]
- object Result