printPassMessages method
void
printPassMessages(
- AFCommandOutput output,
- AFTestStats stats, {
- String? testIdOutput,
inherited
Implementation
void printPassMessages(AFCommandOutput output, AFTestStats stats, { String? testIdOutput }) {
if(sectionErrors.isNotEmpty) {
final sectionErrorSmoke = sectionErrors.values.where((section) => section.section == AFUIScreenTestID.smoke);
final sectionErrorReusable = sectionErrors.values.where((section) => section.section != AFUIScreenTestID.smoke);
if(sectionErrorSmoke.isNotEmpty) {
_writePassed(output, testIdOutput ?? testID, sectionErrorSmoke.first, stats);
}
if(sectionErrorReusable.isNotEmpty) {
for(final sectionError in sectionErrorReusable) {
if(!sectionError.hasErrors) {
_writePassed(output, "${sectionError.section}", sectionError, stats);
}
}
}
}
if(!defaultErrors.hasErrors && defaultErrors.pass > 0) {
_writePassed(output, testIdOutput ?? testID, defaultErrors, stats);
}
}