tested library
Functions
-
expectTestCase<
T> (FutureOr< T> tfunc(), T expct, [bool? error]) → TestCase -
Returns a TestCase that tries to run
tfunc
. -
testAssert(
bool b) → TestCase -
Returns a TestCase that calls
assert
with the given argument. -
testExpect<
T> (T actual, T matcher, {String? reason, Object? skip}) → TestCase -
Returns a TestCase that calls
expect
with the given arguments. -
tests(
Iterable< TestCase> testCases, [String? groupName, TestCase? setup]) → void -
Runs all
testCases
inside agroup
calledgroupName
.
Exceptions / Errors
- NotThrownError
- Thrown by expectTestCase, when it expected an error, but didn't get one.