check<T extends CacheStore> function
void
check<T extends CacheStore>(
- TestContext<
T> ctx, - dynamic actual,
- dynamic matcher,
- String reason,
Assert that actual
matches matcher
in a specific test ctx
.
ctx
: The test contextactual
: The current valuematcher
: Can be a value in which case it will be wrapped in an equals matcherreason
: If provided it is appended to the reason generated by the matcher
Implementation
void check<T extends CacheStore>(
TestContext<T> ctx, dynamic actual, dynamic matcher, String reason) {
expect(actual, matcher, reason: 'Reason: $reason');
}