printPassMessages method

void printPassMessages(
  1. AFCommandOutput output,
  2. AFTestStats stats, {
  3. 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);
  }
}