TestEngine

zio.blocks.projection.testing.TestEngine
See theTestEngine companion class
object TestEngine

Attributes

Companion
class
Source
TestEngine.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TestEngine.type

Members list

Value members

Concrete methods

def apply(projections: Projection[_]*): ZIO[Scope, Nothing, TestEngine]

Alias so TestEngine(proj) works inside a ZIO.scoped for-comprehension.

Alias so TestEngine(proj) works inside a ZIO.scoped for-comprehension.

Attributes

Source
TestEngine.scala
def make(projections: Projection[_]*): ZIO[Scope, Nothing, TestEngine]

Builds and starts a TestEngine for the given projections with the default ProjectionEngineConfig.

Builds and starts a TestEngine for the given projections with the default ProjectionEngineConfig.

The engine runs until the enclosing Scope closes.

Attributes

Source
TestEngine.scala
def makeWithConfig(config: ProjectionEngineConfig, projections: Projection[_]*): ZIO[Scope, Nothing, TestEngine]

Builds and starts a TestEngine with a custom ProjectionEngineConfig.

Builds and starts a TestEngine with a custom ProjectionEngineConfig.

The config's ringCapacity sets the size of each source's Hub. A failure while creating a store is treated as a defect, not a typed error.

Attributes

Source
TestEngine.scala