RouteSpec

abstract class RouteSpec[SE <: Transaction, RE <: JDBCConnection, RE_NC](using evidence$1: Tag[SE], evidence$2: Tag[RE], evidence$3: Tag[RE_NC], ev1: RE_NC & JDBCConnection <:< RE, ev2: NotGiven[RE_NC <:< JDBCConnection]) extends ZIOSpec[HarnessEnv & Route[SE & RE] & TestEnvironment]
class ZIOSpec[HarnessEnv & Route[SE & RE] & TestEnvironment]
trait ZIOSpecVersionSpecific[HarnessEnv & Route[SE & RE] & TestEnvironment]
class ZIOSpecAbstract
trait ZIOSpecAbstractVersionSpecific
trait ZIOApp
trait ZIOAppVersionSpecific
class Object
trait Matchable
class Any

Type members

Classlikes

Types

final type HttpEnv = HarnessEnv & ProvidedEnv & ServerEnv & JDBCConnection
final type ProvidedEnv = Route[ServerEnv & ReqEnv] & CookieStorage
final type ReqEnv = RE
final type ReqEnv_NoConnection = RE_NC
final type ServerEnv = SE
final type TestSpec = Spec[Environment & ServerEnv & ReqEnv & CookieStorage & Scope, Any]

Inherited types

type Environment = R
Inherited from:
ZIOSpec

Value members

Abstract methods

Concrete methods

override def bootstrap: ZLayer[Scope, Any, Environment]
Definition Classes
ZIOSpecAbstract -> ZIOApp
final override def spec: Spec[Environment & Scope, Any]
Definition Classes
ZIOSpecAbstract

Inherited methods

final def <>(that: ZIOSpecAbstract)(implicit trace: Trace): ZIOSpecAbstract
Inherited from:
ZIOSpecAbstract
final def <>(that: ZIOApp)(implicit trace: Trace): ZIOApp

Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.

Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.

Inherited from:
ZIOApp
def aspects: Chunk[TestAspectAtLeastR[Environment & TestEnvironment]]
Inherited from:
ZIOSpecAbstract
final def exit(code: ExitCode)(implicit trace: Trace): UIO[Unit]

A helper function to exit the application with the specified exit code.

A helper function to exit the application with the specified exit code.

Inherited from:
ZIOApp
final def getArgs(implicit trace: Trace): ZIO[ZIOAppArgs, Nothing, Chunk[String]]

A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.

A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.

Inherited from:
ZIOApp
final def invoke(args: Chunk[String])(implicit trace: Trace): ZIO[Any, Any, Any]

Invokes the main app. Designed primarily for testing.

Invokes the main app. Designed primarily for testing.

Inherited from:
ZIOApp
final def main(args0: Array[String]): Unit

The Scala main function, intended to be called only by the Scala runtime.

The Scala main function, intended to be called only by the Scala runtime.

Inherited from:
ZIOAppPlatformSpecific (hidden)
final def run: ZIO[ZIOAppArgs & Scope, Any, Summary]
Inherited from:
ZIOSpecAbstract
final protected def runSpec(implicit trace: Trace): ZIO[Environment & TestEnvironment & ZIOAppArgs & Scope, Throwable, Summary]
Inherited from:
ZIOSpecAbstract
def runtime: Runtime[Any]
Inherited from:
ZIOApp
def suite[In](label: String)(specs: In*)(implicit suiteConstructor: SuiteConstructor[In], sourceLocation: SourceLocation, trace: Trace): Spec[OutEnvironment, OutError]
Inherited from:
ZIOSpec
transparent inline def suiteAll(inline name: String)(inline spec: Any): Any
Inherited from:
ZIOSpecVersionSpecific
def test[In](label: String)(assertion: => In)(implicit testConstructor: TestConstructor[Nothing, In], sourceLocation: SourceLocation, trace: Trace): Out

Builds a spec with a single test.

Builds a spec with a single test.

Inherited from:
ZIOSpec

Abstract fields

val reqLayer: SHRLayer[ServerEnv & Scope, ReqEnv]
val route: ServerConfig => Route[ServerEnv & ReqEnv]
val serverLayer: SHRLayer[Scope, ServerEnv]

Concrete fields

final val harnessLayer: HTaskLayer[HarnessEnv]
lazy val logLevel: LogLevel
final val runInTransaction: TestAspectAtLeastR[JDBCConnection & Logger & Telemetry]

Inherited fields

final val environmentTag: Tag[HarnessEnv & Route[SE & RE] & TestEnvironment]
Inherited from:
ZIOSpec

Implicits

Inherited implicits

implicit inline def validateEnv[R1, R, E, A](inline spec: Spec[R, E]): Spec[R1, E]

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.

Inherited from:
ZIOSpecAbstractVersionSpecific
implicit inline def validateEnv[R1, R, E, A](inline zio: ZIO[R, E, A]): ZIO[R1, E, A]

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.

Inherited from:
ZIOAppVersionSpecific