PizzaSpec

smithy4s.tests.PizzaSpec
abstract class PizzaSpec extends MutableIOSuite, Http4sDsl[IO], Http4sClientDsl[IO]

Attributes

Graph
Supertypes
trait Http4sDsl[IO]
trait Http4sDsl2[IO, IO]
trait Responses[IO, IO]
trait Statuses
trait RequestDsl
trait Auth
trait Methods
class MutableIOSuite
trait Helpers
trait BaseIOSuite
trait BaseCatsSuite
trait Provider[IO]
class MutableFSuite[IO]
class RunnableSuite[IO]
trait EffectSuite[IO]
trait Here
trait Suite[IO]
trait BaseSuiteClass
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

implicit class ClientOps(client: Client[IO])

Attributes

Supertypes
class Object
trait Matchable
class Any
case class HeaderMap(values: Map[CaseInsensitive, List[String]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
implicit class JsonOps(json: Json)

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

class PartiallyAppliedTest(name: TestName)

Attributes

Inherited from:
MutableFSuite
Supertypes
class Object
trait Matchable
class Any
implicit class StringOps(str: String)

Attributes

Inherited from:
Helpers
Supertypes
class Object
trait Matchable
class Any
object as

Attributes

Inherited from:
Auth
Supertypes
class Object
trait Matchable
class Any

Types

type Res = (Client[IO], Uri)

Inherited types

type / = /.type

Attributes

Inherited from:
RequestDsl
final type EffectType[A] = IO[A]

Attributes

Inherited from:
EffectSuite

Attributes

Inherited from:
RequestDsl

Attributes

Inherited from:
RequestDsl

Attributes

Inherited from:
RequestDsl
type Path = Path

Attributes

Inherited from:
RequestDsl

Attributes

Inherited from:
RequestDsl

Attributes

Inherited from:
RequestDsl
type Root = Root.type

Attributes

Inherited from:
RequestDsl

Value members

Abstract methods

def runServer(pizzaService: PizzaAdminService[IO], errorAdapter: PartialFunction[Throwable, Throwable]): Resource[IO, Res]

Concrete methods

def routerTest(testName: TestName)(f: (Client[IO], Uri, Log[IO]) => IO[Expectations]): Unit

Inherited methods

def assert: Expect

Attributes

Inherited from:
Helpers
def cancel(reason: String)(implicit pos: SourceLocation): IO[Nothing]

Raise an error that leads to the running test being tagged as "cancelled".

Raise an error that leads to the running test being tagged as "cancelled".

Attributes

Inherited from:
EffectSuite
def exists[L[_], A](la: L[A])(f: A => Expectations)(implicit foldable: Foldable[L], pos: SourceLocation): Expectations

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Attributes

Example
   val xs =
     List("foo", "bar")
   // success
   exists(xs)(s => expect.eql("foo", s)
Inherited from:
Helpers
def expect: Expect

Expect macros

Expect macros

Attributes

Inherited from:
Helpers
def fail[A](hint: String)(implicit pos: SourceLocation): A => Expectations

Attributes

Inherited from:
Helpers
def failure(hint: String)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def forEach[L[_], A](la: L[A])(f: A => Expectations)(implicit L: Foldable[L]): Expectations

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

Attributes

Example
   val xs =
     List("foo", "bar")
   // success
   forEach(xs)(s => expect.eql(3, s.length)
Inherited from:
Helpers
def getSuite: EffectSuite[IO]

Attributes

Inherited from:
BaseIOSuite
inline def here: SourceLocation

Pulls source location without being affected by implicit scope.

Pulls source location without being affected by implicit scope.

Attributes

Inherited from:
Here
def ignore(reason: String)(implicit pos: SourceLocation): IO[Nothing]

Raises an error that leads to the running test being tagged as "ignored"

Raises an error that leads to the running test being tagged as "ignored"

Attributes

Inherited from:
EffectSuite
def inEach[L[_], A](la: L[A])(f: A => Expectations)(implicit L: Foldable[L]): Expectations

Alias for forEach

Alias for forEach

Attributes

Inherited from:
Helpers
def isCI: Boolean

Attributes

Inherited from:
RunnableSuite
def loggedTest(name: TestName)(run: (Log[IO]) => IO[Expectations]): Unit

Attributes

Inherited from:
MutableFSuite
def matches[A](x: A)(f: PartialFunction[A, Expectations])(implicit pos: SourceLocation, A: Show[A]): Expectations

Checks that a given expression matches a certain pattern; fails otherwise.

Checks that a given expression matches a certain pattern; fails otherwise.

Attributes

Example
   matches(Option(4)) { case Some(x) =>
     expect.eql(4, x)
   }
Inherited from:
Helpers

Attributes

Inherited from:
MutableFSuite
override def name: String

Attributes

Definition Classes
EffectSuite -> Suite
Inherited from:
EffectSuite
def not(assertion: Expectations)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def plan: List[TestName]

Attributes

Inherited from:
MutableFSuite
def pureTest(name: TestName)(run: => Expectations): Unit

Attributes

Inherited from:
MutableFSuite
protected def registerTest(name: TestName)(f: Res => IO[TestOutcome]): Unit

Attributes

Inherited from:
MutableFSuite
final def run(args: List[String])(report: TestOutcome => IO[Unit]): IO[Unit]

Attributes

Inherited from:
EffectSuite
override def spec(args: List[String]): Stream[IO, TestOutcome]

Attributes

Definition Classes
MutableFSuite -> Suite
Inherited from:
MutableFSuite
def succeed[A]: A => Expectations

Attributes

Inherited from:
Helpers
def test(name: TestName): PartiallyAppliedTest

Attributes

Inherited from:
MutableFSuite
def verify(condition: Boolean)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def verify(condition: Boolean, hint: String)(implicit pos: SourceLocation): Expectations

Attributes

Inherited from:
Helpers
def whenSuccess[F[_], A, E](fa: F[A])(f: A => Expectations)(implicit pos: SourceLocation, F: ApplicativeError[F, E], G: Foldable[F], E: Show[E]): Expectations

Checks that an ApplicativeError (like Either) is successful

Checks that an ApplicativeError (like Either) is successful

Attributes

Example
   val res: Either[String, Int] =
     Right(4)
   whenSuccess(res) { n =>
     expect.eql(4, n)
   }
Inherited from:
Helpers

Concrete fields

Inherited fields

val +&: +&.type

Attributes

Inherited from:
Http4sDsl2
val ->: ->.type

Attributes

Inherited from:
Http4sDsl2
val /: /.type

Attributes

Inherited from:
Http4sDsl2
val /:: /:.type

Attributes

Inherited from:
Http4sDsl2
val :?: :?.type

Attributes

Inherited from:
Http4sDsl2
val Accepted: Accepted.type

Attributes

Inherited from:
Statuses
val AlreadyReported: AlreadyReported.type

Attributes

Inherited from:
Statuses
val BadGateway: BadGateway.type

Attributes

Inherited from:
Statuses
val BadRequest: BadRequest.type

Attributes

Inherited from:
Statuses
val CONNECT: CONNECT.type

Attributes

Inherited from:
Methods
val Conflict: Conflict.type

Attributes

Inherited from:
Statuses
val Continue: Continue.type

Attributes

Inherited from:
Statuses
val Created: Created.type

Attributes

Inherited from:
Statuses
val DELETE: DELETE.type

Attributes

Inherited from:
Methods
val ExpectationFailed: ExpectationFailed.type

Attributes

Inherited from:
Statuses
val FailedDependency: FailedDependency.type

Attributes

Inherited from:
Statuses
val Forbidden: Forbidden.type

Attributes

Inherited from:
Statuses
val Found: Found.type

Attributes

Inherited from:
Statuses
val GET: GET.type

Attributes

Inherited from:
Methods
val GatewayTimeout: GatewayTimeout.type

Attributes

Inherited from:
Statuses
val Gone: Gone.type

Attributes

Inherited from:
Statuses
val HEAD: HEAD.type

Attributes

Inherited from:
Methods
val HttpVersionNotSupported: HttpVersionNotSupported.type

Attributes

Inherited from:
Statuses
val IMUsed: IMUsed.type

Attributes

Inherited from:
Statuses
val InsufficientStorage: InsufficientStorage.type

Attributes

Inherited from:
Statuses
val IntVar: IntVar.type

Attributes

Inherited from:
Http4sDsl2
val InternalServerError: InternalServerError.type

Attributes

Inherited from:
Statuses
val LengthRequired: LengthRequired.type

Attributes

Inherited from:
Statuses
val Locked: Locked.type

Attributes

Inherited from:
Statuses
val LongVar: LongVar.type

Attributes

Inherited from:
Http4sDsl2
val LoopDetected: LoopDetected.type

Attributes

Inherited from:
Statuses
val MethodNotAllowed: MethodNotAllowed.type

Attributes

Inherited from:
Statuses
val MovedPermanently: MovedPermanently.type

Attributes

Inherited from:
Statuses
val MultiStatus: MultiStatus.type

Attributes

Inherited from:
Statuses
val MultipleChoices: MultipleChoices.type

Attributes

Inherited from:
Statuses
val NetworkAuthenticationRequired: NetworkAuthenticationRequired.type

Attributes

Inherited from:
Statuses
val NoContent: NoContent.type

Attributes

Inherited from:
Statuses
val NonAuthoritativeInformation: NonAuthoritativeInformation.type

Attributes

Inherited from:
Statuses
val NotAcceptable: NotAcceptable.type

Attributes

Inherited from:
Statuses
val NotExtended: NotExtended.type

Attributes

Inherited from:
Statuses
val NotFound: NotFound.type

Attributes

Inherited from:
Statuses
val NotImplemented: NotImplemented.type

Attributes

Inherited from:
Statuses
val NotModified: NotModified.type

Attributes

Inherited from:
Statuses
val OPTIONS: OPTIONS.type

Attributes

Inherited from:
Methods
val Ok: Ok.type

Attributes

Inherited from:
Statuses
val PATCH: PATCH.type

Attributes

Inherited from:
Methods
val POST: POST.type

Attributes

Inherited from:
Methods
val PUT: PUT.type

Attributes

Inherited from:
Methods
val PartialContent: PartialContent.type

Attributes

Inherited from:
Statuses
val Path: Path.type

Attributes

Inherited from:
Http4sDsl2
val PayloadTooLarge: PayloadTooLarge.type

Attributes

Inherited from:
Statuses
val PaymentRequired: PaymentRequired.type

Attributes

Inherited from:
Statuses
val PermanentRedirect: PermanentRedirect.type

Attributes

Inherited from:
Statuses
val PreconditionFailed: PreconditionFailed.type

Attributes

Inherited from:
Statuses
val PreconditionRequired: PreconditionRequired.type

Attributes

Inherited from:
Statuses
val Processing: Processing.type

Attributes

Inherited from:
Statuses
val ProxyAuthenticationRequired: ProxyAuthenticationRequired.type

Attributes

Inherited from:
Statuses
val RangeNotSatisfiable: RangeNotSatisfiable.type

Attributes

Inherited from:
Statuses
val RequestHeaderFieldsTooLarge: RequestHeaderFieldsTooLarge.type

Attributes

Inherited from:
Statuses
val RequestTimeout: RequestTimeout.type

Attributes

Inherited from:
Statuses
val ResetContent: ResetContent.type

Attributes

Inherited from:
Statuses
val Root: Root.type

Attributes

Inherited from:
Http4sDsl2
val SeeOther: SeeOther.type

Attributes

Inherited from:
Statuses
val ServiceUnavailable: ServiceUnavailable.type

Attributes

Inherited from:
Statuses
val SwitchingProtocols: SwitchingProtocols.type

Attributes

Inherited from:
Statuses
val TRACE: TRACE.type

Attributes

Inherited from:
Methods
val TemporaryRedirect: TemporaryRedirect.type

Attributes

Inherited from:
Statuses
val TooManyRequests: TooManyRequests.type

Attributes

Inherited from:
Statuses
val UUIDVar: UUIDVar.type

Attributes

Inherited from:
Http4sDsl2
val Unauthorized: Unauthorized.type

Attributes

Inherited from:
Statuses
val UnavailableForLegalReasons: UnavailableForLegalReasons.type

Attributes

Inherited from:
Statuses
val UnprocessableEntity: UnprocessableEntity.type

Attributes

Inherited from:
Statuses
val UnsupportedMediaType: UnsupportedMediaType.type

Attributes

Inherited from:
Statuses
val UpgradeRequired: UpgradeRequired.type

Attributes

Inherited from:
Statuses
val UriTooLong: UriTooLong.type

Attributes

Inherited from:
Statuses
val UseProxy: UseProxy.type

Attributes

Inherited from:
Statuses
val VariantAlsoNegotiates: VariantAlsoNegotiates.type

Attributes

Inherited from:
Statuses
val liftG: FunctionK[IO, IO]

Attributes

Inherited from:
Http4sDsl
val success: Expectations

Attributes

Inherited from:
Helpers
val ~: ~.type

Attributes

Inherited from:
Http4sDsl2
val →: ->.type

Alias for ->.

Alias for ->.

Note: Due to infix operation precedence, → has a lower priority than /. So you have to use parentheses in pattern matching when using this operator.

For example:

 (request.method, Path(request.path)) match {
   case Method.GET → (Root / "test.json") => ...

Attributes

Inherited from:
Http4sDsl2

Implicits

Implicits

final implicit def ClientOps(client: Client[IO]): ClientOps
final implicit def JsonOps(json: Json): JsonOps

Inherited implicits

final implicit def StringOps(str: String): StringOps

Attributes

Inherited from:
Helpers
implicit protected def effectCompat: UnsafeRun[IO]

Attributes

Inherited from:
BaseIOSuite
implicit def http4sAcceptedSyntax(status: Accepted.type): AcceptedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sAlreadyReportedSyntax(status: AlreadyReported.type): AlreadyReportedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sBadGatewaySyntax(status: BadGateway.type): BadGatewayOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sBadRequestSyntax(status: BadRequest.type): BadRequestOps[IO, IO]

Attributes

Inherited from:
Responses

Attributes

Inherited from:
Http4sClientDsl
implicit def http4sConflictSyntax(status: Conflict.type): ConflictOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sContinueSyntax(status: Continue.type): ContinueOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sCreatedSyntax(status: Created.type): CreatedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sEarlyHintsSyntax(status: EarlyHints.type): EarlyHintsOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sExpectationFailedSyntax(status: ExpectationFailed.type): ExpectationFailedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sFailedDependencySyntax(status: FailedDependency.type): FailedDependencyOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sForbiddenSyntax(status: Forbidden.type): ForbiddenOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sFoundSyntax(status: Found.type): FoundOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sGatewayTimeoutSyntax(status: GatewayTimeout.type): GatewayTimeoutOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sGoneSyntax(status: Gone.type): GoneOps[IO, IO]

Attributes

Inherited from:
Responses

Attributes

Inherited from:
Http4sClientDsl
implicit def http4sHttpVersionNotSupportedSyntax(status: HttpVersionNotSupported.type): HttpVersionNotSupportedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sIMUsedSyntax(status: IMUsed.type): IMUsedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sInsufficientStorageSyntax(status: InsufficientStorage.type): InsufficientStorageOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sInternalServerErrorSyntax(status: InternalServerError.type): InternalServerErrorOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sLengthRequiredSyntax(status: LengthRequired.type): LengthRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sLockedSyntax(status: Locked.type): LockedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sLoopDetectedSyntax(status: LoopDetected.type): LoopDetectedOps[IO, IO]

Attributes

Inherited from:
Responses

Attributes

Inherited from:
RequestDsl
implicit def http4sMethodNotAllowedSyntax(status: MethodNotAllowed.type): MethodNotAllowedOps[IO, IO]

Attributes

Inherited from:
Responses

Attributes

Inherited from:
RequestDsl
implicit def http4sMisdirectedRequestSyntax(status: MisdirectedRequest.type): MisdirectedRequestOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sMovedPermanentlySyntax(status: MovedPermanently.type): MovedPermanentlyOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sMultiStatusSyntax(status: MultiStatus.type): MultiStatusOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sMultipleChoicesSyntax(status: MultipleChoices.type): MultipleChoicesOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNetworkAuthenticationRequiredSyntax(status: NetworkAuthenticationRequired.type): NetworkAuthenticationRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNoContentSyntax(status: NoContent.type): NoContentOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNonAuthoritativeInformationSyntax(status: NonAuthoritativeInformation.type): NonAuthoritativeInformationOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNotAcceptableSyntax(status: NotAcceptable.type): NotAcceptableOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNotExtendedSyntax(status: NotExtended.type): NotExtendedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNotFoundSyntax(status: NotFound.type): NotFoundOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNotImplementedSyntax(status: NotImplemented.type): NotImplementedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sNotModifiedSyntax(status: NotModified.type): NotModifiedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sOkSyntax(status: Ok.type): OkOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPartialContentSyntax(status: PartialContent.type): PartialContentOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPayloadTooLargeSyntax(status: PayloadTooLarge.type): PayloadTooLargeOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPaymentRequiredSyntax(status: PaymentRequired.type): PaymentRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPermanentRedirectSyntax(status: PermanentRedirect.type): PermanentRedirectOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPreconditionFailedSyntax(status: PreconditionFailed.type): PreconditionFailedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sPreconditionRequiredSyntax(status: PreconditionRequired.type): PreconditionRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sProxyAuthenticationRequiredSyntax(status: ProxyAuthenticationRequired.type): ProxyAuthenticationRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sRangeNotSatisfiableSyntax(status: RangeNotSatisfiable.type): RangeNotSatisfiableOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sRequestHeaderFieldsTooLargeSyntax(status: RequestHeaderFieldsTooLarge.type): RequestHeaderFieldsTooLargeOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sRequestTimeoutSyntax(status: RequestTimeout.type): RequestTimeoutOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sResetContentSyntax(status: ResetContent.type): ResetContentOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sSeeOtherSyntax(status: SeeOther.type): SeeOtherOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sServiceUnavailableSyntax(status: ServiceUnavailable.type): ServiceUnavailableOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sSwitchingProtocolsSyntax(status: SwitchingProtocols.type): SwitchingProtocolsOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sTemporaryRedirectSyntax(status: TemporaryRedirect.type): TemporaryRedirectOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sTooEarlySyntax(status: TooEarly.type): TooEarlyOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sTooManyRequestsSyntax(status: TooManyRequests.type): TooManyRequestsOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUnauthorizedSyntax(status: Unauthorized.type): UnauthorizedOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUnavailableForLegalReasonsSyntax(status: UnavailableForLegalReasons.type): UnavailableForLegalReasonsOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUnprocessableEntitySyntax(status: UnprocessableEntity.type): UnprocessableEntityOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUnsupportedMediaTypeSyntax(status: UnsupportedMediaType.type): UnsupportedMediaTypeOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUpgradeRequiredSyntax(status: UpgradeRequired.type): UpgradeRequiredOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sUriTooLongSyntax(status: UriTooLong.type): UriTooLongOps[IO, IO]

Attributes

Inherited from:
Responses
implicit def http4sVariantAlsoNegotiatesSyntax(status: VariantAlsoNegotiates.type): VariantAlsoNegotiatesOps[IO, IO]

Attributes

Inherited from:
Responses