expect/expect library

Properties

isUnauthorized Checker<Response>
no setter
mimeTypeIsHtml Checker<Response>
final
mimeTypeIsJson Checker<Response>
final

Functions

bodyBytesIs(List<int> expected) Checker<Response>
bodyIs(String expected) Checker<Response>
encodingIs(String expected) Checker<Response>
headersHas(String header, [String? value]) Checker<Response>
mimeTypeIs(String expected) Checker<Response>
statusCodeIs(int expected) Checker<Response>
statusCodeIsInRange(int lower, int higher) Checker<Response>

Typedefs

Checker<T> = List<Mismatch> Function(T v)
Performs a check/validation on T
CustomMismatchMessage<T> = String Function(T mismatch)
Customizes message of a Mismatch

Exceptions / Errors

EqualityMismatch<T>
MapHasMismatch<T>
Mismatch<M>
A mismatch exception
RangeMismatch<T>