parameters: (strm, result_map, ftype)
return_statement: return len(result_map) - npass
docstring: Print summary of certain result map.
docstring_summary: Print summary of certain result map.
docstring_tokens: Print summary of certain result map .
function: def _print_summary_map(strm, result_map, ftype):
          """Print summary of certain result map."""
          if len(result_map) == 0:
              return 0
          npass = sum(1 for x in result_map.values() if len(x) == 0)
          strm.write(f'====={npass}/{len(result_map)} {ftype} files passed check=====\n')
          for fname, emap in result_map.items():
              if len(emap) == 0:
                  continue
              strm.write(
                  f'{fname}: {sum(emap.values())} Errors of {len(emap)} Categories map={str(emap)}\n')
          return len(result_map) - npass
function_tokens: def _print_summary_map ( strm , result_map , ftype ) : if len ( result_map ) == 0 : return 0 npass = sum ( 1 for x in result_map . values ( ) if len ( x ) == 0 ) strm . write ( f'====={npass}/{len(result_map)} {ftype} files passed check=====\n' ) for fname , emap in result_map . items ( ) : if len ( emap ) == 0 : continue strm . write ( f'{fname}: {sum(emap.values())} Errors of {len(emap)} Categories map={str(emap)}\n' ) return len ( result_map ) - npass