testSummary function
Print a test summary.
Returns true if all verifications passed, false otherwise.
Implementation
bool testSummary() {
if (_verificationFailures.isEmpty) {
print('All verifications passed!');
return true;
} else {
print('${_verificationFailures.length} verification(s) failed:');
for (var i = 0; i < _verificationFailures.length; i++) {
print(' ${i + 1}. ${_verificationFailures[i]}');
}
return false;
}
}