PizzaClientSpec

abstract class PizzaClientSpec extends MutableIOSuite
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

case class Backend(ref: Ref[IO, State])
case class State(requests: Map[String, Chain[Request[IO]]], nextResponses: Map[String, Response[IO]])
Companion:
object
object State
Companion:
class

Inherited classlikes

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

Types

type Res = (Monadic[[F[_, _, _, _, _]] =>> PizzaAdminServiceGen[F], IO], Backend)

Inherited types

final type EffectType[A] = F[A]
Inherited from:
EffectSuite

Value members

Abstract methods

def makeClient: Either[HttpApp[IO] => Resource[IO, Monadic[[F[_, _, _, _, _]] =>> PizzaAdminServiceGen[F], IO]], Int => Resource[IO, Monadic[[F[_, _, _, _, _]] =>> PizzaAdminServiceGen[F], IO]]]

Concrete methods

def clientTest(name: TestName)(f: (Monadic[[F[_, _, _, _, _]] =>> PizzaAdminServiceGen[F], IO], Backend, Log[IO]) => IO[Expectations]): Unit
def clientTestForError[E](name: String, response: Response[IO], expected: E)(implicit loc: SourceLocation, ct: ClassTag[E], show: Show[E]): Unit
def emberServer(app: HttpApp[IO]): Resource[IO, Int]
def retryResource[A](resource: Resource[IO, A], max: Int): Resource[IO, A]
def sharedResource: Resource[IO, (Monadic[[F[_, _, _, _, _]] =>> PizzaAdminServiceGen[F], IO], Backend)]

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 randomInt: Resource[IO, Int]

Inherited fields

val success: Expectations
Inherited from:
Helpers

Implicits

Inherited implicits

final implicit def StringOps(str: String): StringOps
Inherited from:
Helpers
implicit protected def effectCompat: UnsafeRun[IO]
Inherited from:
BaseIOSuite