PizzaSpec

abstract
class PizzaSpec extends MutableIOSuite with Http4sDsl[IO] with Http4sClientDsl[IO]
trait Http4sClientDsl[IO]
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 EffectSuiteAux
trait Suite[IO]
trait BaseSuiteClass
class Object
trait Matchable
class Any

Type members

Classlikes

implicit
class ClientOps(client: Client[IO])
case
class HeaderMap(values: Map[CaseInsensitive, List[String]])
implicit
class JsonOps(json: Json)

Inherited classlikes

class PartiallyAppliedTest(name: TestName)
Inherited from
MutableFSuite
class StringOps(str: String)
Inherited from
Helpers
object as
Inherited from
Auth

Types

type Res = (Client[IO], Uri)

Inherited types

type / = /
Inherited from
RequestDsl
final
type EffectType[A] = F[A]
Inherited from
EffectSuite
type FlagQueryParamMatcher = FlagQueryParamMatcher
Inherited from
RequestDsl
type MethodConcat = MethodConcat
Inherited from
RequestDsl
type OptionalMultiQueryParamDecoderMatcher[T] = OptionalMultiQueryParamDecoderMatcher[T]
Inherited from
RequestDsl
type OptionalQueryParamDecoderMatcher[T] = OptionalQueryParamDecoderMatcher[T]
Inherited from
RequestDsl
type OptionalQueryParamMatcher[T] = OptionalQueryParamMatcher[T]
Inherited from
RequestDsl
type OptionalValidatingQueryParamDecoderMatcher[T] = OptionalValidatingQueryParamDecoderMatcher[T]
Inherited from
RequestDsl
type Path = Path
Inherited from
RequestDsl
type QueryParamDecoderMatcher[T] = QueryParamDecoderMatcher[T]
Inherited from
RequestDsl
type QueryParamDecoderMatcherWithDefault[T] = QueryParamDecoderMatcherWithDefault[T]
Inherited from
RequestDsl
type QueryParamMatcher[T] = QueryParamMatcher[T]
Inherited from
RequestDsl
type Root = Path
Inherited from
RequestDsl
type ValidatingQueryParamDecoderMatcher[T] = ValidatingQueryParamDecoderMatcher[T]
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
def sharedResource: Resource[IO, (Client[IO], Uri)]

Inherited methods

def assert: Expect
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".

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.

Inherited from
Helpers
def expect: Expect

Expect macros

Expect macros

Inherited from
Helpers
def fail[A](hint: String)(implicit pos: SourceLocation): A => Expectations
Inherited from
Helpers
def failure(hint: String)(implicit pos: SourceLocation): Expectations
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.

Inherited from
Helpers
def getSuite: EffectSuite[IO]
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.

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"

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

Alias to forall

Alias to forall

Inherited from
Helpers
def loggedTest(name: TestName)(run: Log[IO] => IO[Expectations]): Unit
Inherited from
MutableFSuite
Inherited from
MutableFSuite
override
def name: String
Definition Classes
EffectSuite -> Suite
Inherited from
EffectSuite
def not(assertion: Expectations)(implicit pos: SourceLocation): Expectations
Inherited from
Helpers
def plan: List[TestName]
Inherited from
MutableFSuite
def pureTest(name: TestName)(run: => Expectations): Unit
Inherited from
MutableFSuite
protected
def registerTest(name: TestName)(f: Res => IO[TestOutcome]): Unit
Inherited from
MutableFSuite
final
def run(args: List[String])(report: TestOutcome => IO[Unit]): IO[Unit]
Inherited from
EffectSuite
override
def spec(args: List[String]): Stream[IO, TestOutcome]
Definition Classes
MutableFSuite -> Suite
Inherited from
MutableFSuite
def succeed[A]: A => Expectations
Inherited from
Helpers
def test(name: TestName): PartiallyAppliedTest
Inherited from
MutableFSuite
def verify(condition: Boolean)(implicit pos: SourceLocation): Expectations
Inherited from
Helpers
def verify(condition: Boolean, hint: String)(implicit pos: SourceLocation): Expectations
Inherited from
Helpers

Concrete fields

val customErrorLabel: String
val pizzaItem: Json
val positiveEmptyLabel: String
val positiveLabel: String

Inherited fields

val +&: +&
Inherited from
Http4sDsl2
val ->: ->
Inherited from
Http4sDsl2
val /: /
Inherited from
Http4sDsl2
val /:: /:
Inherited from
Http4sDsl2
val :?: :?
Inherited from
Http4sDsl2
val Accepted: Status
Inherited from
Statuses
val AlreadyReported: Status
Inherited from
Statuses
val BadGateway: Status
Inherited from
Statuses
val BadRequest: Status
Inherited from
Statuses
val CONNECT: Method
Inherited from
Methods
val Conflict: Status
Inherited from
Statuses
val Continue: Status
Inherited from
Statuses
val Created: Status
Inherited from
Statuses
val DELETE: Method
Inherited from
Methods
val ExpectationFailed: Status
Inherited from
Statuses
val FailedDependency: Status
Inherited from
Statuses
val Forbidden: Status
Inherited from
Statuses
val Found: Status
Inherited from
Statuses
val GET: Method
Inherited from
Methods
val GatewayTimeout: Status
Inherited from
Statuses
val Gone: Status
Inherited from
Statuses
val HEAD: Method
Inherited from
Methods
Inherited from
Statuses
val IMUsed: Status
Inherited from
Statuses
Inherited from
Statuses
val IntVar: IntVar
Inherited from
Http4sDsl2
Inherited from
Statuses
val LengthRequired: Status
Inherited from
Statuses
val Locked: Status
Inherited from
Statuses
val LongVar: LongVar
Inherited from
Http4sDsl2
val LoopDetected: Status
Inherited from
Statuses
val MethodNotAllowed: Status
Inherited from
Statuses
val MovedPermanently: Status
Inherited from
Statuses
val MultiStatus: Status
Inherited from
Statuses
val MultipleChoices: Status
Inherited from
Statuses
Inherited from
Statuses
val NoContent: Status
Inherited from
Statuses
Inherited from
Statuses
val NotAcceptable: Status
Inherited from
Statuses
val NotExtended: Status
Inherited from
Statuses
val NotFound: Status
Inherited from
Statuses
val NotImplemented: Status
Inherited from
Statuses
val NotModified: Status
Inherited from
Statuses
val OPTIONS: Method
Inherited from
Methods
val Ok: Status
Inherited from
Statuses
val PATCH: Method
Inherited from
Methods
val POST: Method
Inherited from
Methods
val PUT: Method
Inherited from
Methods
val PartialContent: Status
Inherited from
Statuses
val Path: Path
Inherited from
Http4sDsl2
val PayloadTooLarge: Status
Inherited from
Statuses
val PaymentRequired: Status
Inherited from
Statuses
val PermanentRedirect: Status
Inherited from
Statuses
val PreconditionFailed: Status
Inherited from
Statuses
Inherited from
Statuses
val Processing: Status
Inherited from
Statuses
Inherited from
Statuses
Inherited from
Statuses
Inherited from
Statuses
val RequestTimeout: Status
Inherited from
Statuses
val ResetContent: Status
Inherited from
Statuses
val Root: Path
Inherited from
Http4sDsl2
val SeeOther: Status
Inherited from
Statuses
val ServiceUnavailable: Status
Inherited from
Statuses
val SwitchingProtocols: Status
Inherited from
Statuses
val TRACE: Method
Inherited from
Methods
val TemporaryRedirect: Status
Inherited from
Statuses
val TooManyRequests: Status
Inherited from
Statuses
val UUIDVar: UUIDVar
Inherited from
Http4sDsl2
val Unauthorized: Status
Inherited from
Statuses
Inherited from
Statuses
Inherited from
Statuses
Inherited from
Statuses
val UpgradeRequired: Status
Inherited from
Statuses
val UriTooLong: Status
Inherited from
Statuses
val UseProxy: Status
Inherited from
Statuses
Inherited from
Statuses
val liftG: FunctionK[IO, IO]
Inherited from
Http4sDsl
val success: Expectations
Inherited from
Helpers
val ~: ~
Inherited from
Http4sDsl2
val →: ->

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") => ...
Inherited from
Http4sDsl2

Implicits

Implicits

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

Inherited implicits

implicit protected
def effectCompat: UnsafeRun[IO]
Inherited from
BaseIOSuite
implicit
def http4sAcceptedSyntax(status: Status): AcceptedOps[IO, IO]
Inherited from
Responses
implicit
def http4sAlreadyReportedSyntax(status: Status): AlreadyReportedOps[IO, IO]
Inherited from
Responses
implicit
def http4sBadGatewaySyntax(status: Status): BadGatewayOps[IO, IO]
Inherited from
Responses
implicit
def http4sBadRequestSyntax(status: Status): BadRequestOps[IO, IO]
Inherited from
Responses
implicit
def http4sClientSyntaxMethod(method: Method): MethodOps[IO]
Inherited from
Http4sClientDsl
implicit
def http4sConflictSyntax(status: Status): ConflictOps[IO, IO]
Inherited from
Responses
implicit
def http4sContinueSyntax(status: Status): ContinueOps[IO, IO]
Inherited from
Responses
implicit
def http4sCreatedSyntax(status: Status): CreatedOps[IO, IO]
Inherited from
Responses
implicit
def http4sEarlyHintsSyntax(status: Status): EarlyHintsOps[IO, IO]
Inherited from
Responses
implicit
def http4sExpectationFailedSyntax(status: Status): ExpectationFailedOps[IO, IO]
Inherited from
Responses
implicit
def http4sFailedDependencySyntax(status: Status): FailedDependencyOps[IO, IO]
Inherited from
Responses
implicit
def http4sForbiddenSyntax(status: Status): ForbiddenOps[IO, IO]
Inherited from
Responses
implicit
def http4sFoundSyntax(status: Status): FoundOps[IO, IO]
Inherited from
Responses
implicit
def http4sGatewayTimeoutSyntax(status: Status): GatewayTimeoutOps[IO, IO]
Inherited from
Responses
implicit
def http4sGoneSyntax(status: Status): GoneOps[IO, IO]
Inherited from
Responses
implicit
def http4sHeadersDecoder[T](implicit F: Applicative[IO], decoder: EntityDecoder[IO, T]): EntityDecoder[IO, (Headers, T)]
Inherited from
Http4sClientDsl
implicit
def http4sHttpVersionNotSupportedSyntax(status: Status): HttpVersionNotSupportedOps[IO, IO]
Inherited from
Responses
implicit
def http4sIMUsedSyntax(status: Status): IMUsedOps[IO, IO]
Inherited from
Responses
implicit
def http4sInsufficientStorageSyntax(status: Status): InsufficientStorageOps[IO, IO]
Inherited from
Responses
implicit
def http4sInternalServerErrorSyntax(status: Status): InternalServerErrorOps[IO, IO]
Inherited from
Responses
implicit
def http4sLengthRequiredSyntax(status: Status): LengthRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sLockedSyntax(status: Status): LockedOps[IO, IO]
Inherited from
Responses
implicit
def http4sLoopDetectedSyntax(status: Status): LoopDetectedOps[IO, IO]
Inherited from
Responses
implicit
def http4sMethodConcatSyntax(methods: MethodConcat): MethodConcatOps
Inherited from
RequestDsl
implicit
def http4sMethodNotAllowedSyntax(status: Status): MethodNotAllowedOps[IO, IO]
Inherited from
Responses
implicit
def http4sMethodSyntax(method: Method): MethodOps
Inherited from
RequestDsl
implicit
def http4sMisdirectedRequestSyntax(status: Status): MisdirectedRequestOps[IO, IO]
Inherited from
Responses
implicit
def http4sMovedPermanentlySyntax(status: Status): MovedPermanentlyOps[IO, IO]
Inherited from
Responses
implicit
def http4sMultiStatusSyntax(status: Status): MultiStatusOps[IO, IO]
Inherited from
Responses
implicit
def http4sMultipleChoicesSyntax(status: Status): MultipleChoicesOps[IO, IO]
Inherited from
Responses
implicit
def http4sNetworkAuthenticationRequiredSyntax(status: Status): NetworkAuthenticationRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sNoContentSyntax(status: Status): NoContentOps[IO, IO]
Inherited from
Responses
implicit
def http4sNonAuthoritativeInformationSyntax(status: Status): NonAuthoritativeInformationOps[IO, IO]
Inherited from
Responses
implicit
def http4sNotAcceptableSyntax(status: Status): NotAcceptableOps[IO, IO]
Inherited from
Responses
implicit
def http4sNotExtendedSyntax(status: Status): NotExtendedOps[IO, IO]
Inherited from
Responses
implicit
def http4sNotFoundSyntax(status: Status): NotFoundOps[IO, IO]
Inherited from
Responses
implicit
def http4sNotImplementedSyntax(status: Status): NotImplementedOps[IO, IO]
Inherited from
Responses
implicit
def http4sNotModifiedSyntax(status: Status): NotModifiedOps[IO, IO]
Inherited from
Responses
implicit
def http4sOkSyntax(status: Status): OkOps[IO, IO]
Inherited from
Responses
implicit
def http4sPartialContentSyntax(status: Status): PartialContentOps[IO, IO]
Inherited from
Responses
implicit
def http4sPayloadTooLargeSyntax(status: Status): PayloadTooLargeOps[IO, IO]
Inherited from
Responses
implicit
def http4sPaymentRequiredSyntax(status: Status): PaymentRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sPermanentRedirectSyntax(status: Status): PermanentRedirectOps[IO, IO]
Inherited from
Responses
implicit
def http4sPreconditionFailedSyntax(status: Status): PreconditionFailedOps[IO, IO]
Inherited from
Responses
implicit
def http4sPreconditionRequiredSyntax(status: Status): PreconditionRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sProxyAuthenticationRequiredSyntax(status: Status): ProxyAuthenticationRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sRangeNotSatisfiableSyntax(status: Status): RangeNotSatisfiableOps[IO, IO]
Inherited from
Responses
implicit
def http4sRequestHeaderFieldsTooLargeSyntax(status: Status): RequestHeaderFieldsTooLargeOps[IO, IO]
Inherited from
Responses
implicit
def http4sRequestTimeoutSyntax(status: Status): RequestTimeoutOps[IO, IO]
Inherited from
Responses
implicit
def http4sResetContentSyntax(status: Status): ResetContentOps[IO, IO]
Inherited from
Responses
implicit
def http4sSeeOtherSyntax(status: Status): SeeOtherOps[IO, IO]
Inherited from
Responses
implicit
def http4sServiceUnavailableSyntax(status: Status): ServiceUnavailableOps[IO, IO]
Inherited from
Responses
implicit
def http4sSwitchingProtocolsSyntax(status: Status): SwitchingProtocolsOps[IO, IO]
Inherited from
Responses
implicit
def http4sTemporaryRedirectSyntax(status: Status): TemporaryRedirectOps[IO, IO]
Inherited from
Responses
implicit
def http4sTooEarlySyntax(status: Status): TooEarlyOps[IO, IO]
Inherited from
Responses
implicit
def http4sTooManyRequestsSyntax(status: Status): TooManyRequestsOps[IO, IO]
Inherited from
Responses
implicit
def http4sUnauthorizedSyntax(status: Status): UnauthorizedOps[IO, IO]
Inherited from
Responses
implicit
def http4sUnavailableForLegalReasonsSyntax(status: Status): UnavailableForLegalReasonsOps[IO, IO]
Inherited from
Responses
implicit
def http4sUnprocessableEntitySyntax(status: Status): UnprocessableEntityOps[IO, IO]
Inherited from
Responses
implicit
def http4sUnsupportedMediaTypeSyntax(status: Status): UnsupportedMediaTypeOps[IO, IO]
Inherited from
Responses
implicit
def http4sUpgradeRequiredSyntax(status: Status): UpgradeRequiredOps[IO, IO]
Inherited from
Responses
implicit
def http4sUriTooLongSyntax(status: Status): UriTooLongOps[IO, IO]
Inherited from
Responses
implicit
def http4sVariantAlsoNegotiatesSyntax(status: Status): VariantAlsoNegotiatesOps[IO, IO]
Inherited from
Responses