PizzaSpec

abstract class PizzaSpec extends MutableIOSuite with Http4sDsl[IO] with Http4sClientDsl[IO]
trait Http4sDsl[IO]
trait Http4sDsl2[IO, IO]
trait Responses[IO, IO]
trait Statuses
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 implicit class ClientOps(client: Client[IO])
case class HeaderMap(values: Map[CaseInsensitive, List[String]])
implicit implicit class JsonOps(json: Json)

Inherited classlikes

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

Types

type Res = (Client[IO], Uri)

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
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 positiveEmptyLabel: String
val positiveLabel: String

Inherited fields

val +&: +&.type
Inherited from:
Http4sDsl2
val ->: ->.type
Inherited from:
Http4sDsl2
val /: /.type
Inherited from:
Http4sDsl2
val /:: /:.type
Inherited from:
Http4sDsl2
val :?: :?.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Methods
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Methods
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
val GET: Method
Inherited from:
Methods
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Methods
Inherited from:
Statuses
val IntVar: IntVar.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Statuses
val LongVar: LongVar.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Methods
val Ok: Status
Inherited from:
Statuses
Inherited from:
Methods
Inherited from:
Methods
val PUT: Method
Inherited from:
Methods
Inherited from:
Statuses
val Path: Path.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
val Root: Path
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Methods
Inherited from:
Statuses
Inherited from:
Statuses
val UUIDVar: UUIDVar.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Http4sDsl
val success: Expectations
Inherited from:
Helpers
val ~: ~.type
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") => ...
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
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
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
Inherited from:
Responses
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
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 http4sIMUsedSyntax(status: Status): IMUsedOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
implicit def http4sLockedSyntax(status: Status): LockedOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
RequestDsl
Inherited from:
Responses
implicit def http4sMethodSyntax(method: Method): MethodOps
Inherited from:
RequestDsl
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
implicit def http4sNoContentSyntax(status: Status): NoContentOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
implicit def http4sNotFoundSyntax(status: Status): NotFoundOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
implicit def http4sOkSyntax(status: Status): OkOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
implicit def http4sSeeOtherSyntax(status: Status): SeeOtherOps[IO, IO]
Inherited from:
Responses
implicit def http4sTooEarlySyntax(status: Status): TooEarlyOps[IO, IO]
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses
Inherited from:
Responses