Approvals class
Approvals
is a class that provides methods to verify the content of a response.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
makeNamer(
String filePath, {String? description, FileNamerOptions? options, bool? addTestName}) → ApprovalNamer -
verify(
String response, {Options options = const Options()}) → void -
verifyAll<
T> (List< T> inputs, {required String processor(T item), Options options = const Options()}) → void - Verifies all combinations of inputs for a provided function.
-
verifyAllCombinations<
T> (List< List< inputs, {required String processor(Iterable<T> >List< combination), Options options = const Options()}) → voidT> > - Verifies all combinations of inputs for a provided function.
-
verifyAsJson(
dynamic encodable, {Options options = const Options()}) → void -
verifyQuery(
ExecutableQuery query, {Options options = const Options()}) → Future< void> -
verifySequence(
List sequence, {Options options = const Options()}) → void
Constants
- filePathExtractor → const FilePathExtractor