DefaultCreateServerTest

sttp.tapir.server.tests.DefaultCreateServerTest
class DefaultCreateServerTest[F[_], +R, OPTIONS, ROUTE](backend: SttpBackend[IO, Fs2Streams[IO] & WebSockets], interpreter: TestServerInterpreter[F, R, OPTIONS, ROUTE]) extends CreateServerTest[F, R, OPTIONS, ROUTE]

Attributes

Graph
Supertypes
trait CreateServerTest[F, R, OPTIONS, ROUTE]
class Object
trait Matchable
class Any

Members list

Type members

Inherited types

protected type Interceptors = (CustomiseInterceptors[F, OPTIONS]) => CustomiseInterceptors[F, OPTIONS]

Attributes

Inherited from:
CreateServerTest

Value members

Concrete methods

override def testServer[I, E, O](e: PublicEndpoint[I, E, O, R], testNameSuffix: String, interceptors: Interceptors)(fn: I => F[Either[E, O]])(runTest: (SttpBackend[IO, Fs2Streams[IO] & WebSockets], Uri) => IO[Assertion]): Test

Attributes

Definition Classes
override def testServer(name: String, rs: => NonEmptyList[ROUTE])(runTest: (SttpBackend[IO, Fs2Streams[IO] & WebSockets], Uri) => IO[Assertion]): Test

Attributes

Definition Classes
override def testServerLogic(e: ServerEndpoint[R, F], testNameSuffix: String, interceptors: Interceptors)(runTest: (SttpBackend[IO, Fs2Streams[IO] & WebSockets], Uri) => IO[Assertion]): Test

Attributes

Definition Classes
override def testServerLogicWithStop(e: ServerEndpoint[R, F], testNameSuffix: String, interceptors: Interceptors, gracefulShutdownTimeout: Option[FiniteDuration])(runTest: (IO[Unit]) => (SttpBackend[IO, Fs2Streams[IO] & WebSockets], Uri) => IO[Assertion]): Test

Attributes

Definition Classes
override def testServerWithStop(name: String, rs: => NonEmptyList[ROUTE], gracefulShutdownTimeout: Option[FiniteDuration])(runTest: (IO[Unit]) => (SttpBackend[IO, Fs2Streams[IO] & WebSockets], Uri) => IO[Assertion]): Test

Override for a server to allow running tests which have access to a stop() effect, allowing shutting down the server within the test. By default, this method just uses a no-op IO.unit.

Override for a server to allow running tests which have access to a stop() effect, allowing shutting down the server within the test. By default, this method just uses a no-op IO.unit.

Attributes

Definition Classes