content/test/gpu/flake_suppressor/result_output.py
def _ConvertFromTestGroupingToConfigGrouping(string_map):
  """Converts |string| map to be grouped by typ tags/configuration.

  Args:
    string_map: The output of _ConvertAggregatedResultsToStringMap.

  Returns:
    A map in the format:
    {
      'space separated typ tags': {
        'suite': {
          'test': ['build', 'url', 'list']
        }
      }
    }
  """
  converted_map = {}
  for suite, test_map in string_map.items():
    for test, tag_map in test_map.items():
      for typ_tags, build_urls in tag_map.items():
        converted_map.setdefault(typ_tags, {}).setdefault(suite,
                                                          {})[test] = build_urls
  return converted_map
Converts |string| map to be grouped by typ tags/configuration.

  Args:
    string_map: The output of _ConvertAggregatedResultsToStringMap.

  Returns:
    A map in the format:
    {
      'space separated typ tags': {
        'suite': {
          'test': ['build', 'url', 'list']
        }
      }
    }
  
Converts |string| map to be grouped by typ tags/configuration.
Converts |string| map to be grouped by typ tags / configuration .
def _ConvertFromTestGroupingToConfigGrouping(string_map):
  converted_map = {}
  for suite, test_map in string_map.items():
    for test, tag_map in test_map.items():
      for typ_tags, build_urls in tag_map.items():
        converted_map.setdefault(typ_tags, {}).setdefault(suite,
                                                          {})[test] = build_urls
  return converted_map
def _ConvertFromTestGroupingToConfigGrouping ( string_map ) : converted_map = { } for suite , test_map in string_map . items ( ) : for test , tag_map in test_map . items ( ) : for typ_tags , build_urls in tag_map . items ( ) : converted_map . setdefault ( typ_tags , { } ) . setdefault ( suite , { } ) [ test ] = build_urls return converted_map
Converts |string| map to be grouped by typ tags/configuration.
Converts |string| map to be grouped by typ tags / configuration .
"""Converts |string| map to be grouped by typ tags/configuration.

  Args:
    string_map: The output of _ConvertAggregatedResultsToStringMap.

  Returns:
    A map in the format:
    {
      'space separated typ tags': {
        'suite': {
          'test': ['build', 'url', 'list']
        }
      }
    }
  """
A map in the format:
{
'space separated typ tags': {
'suite': {
'test': ['build', 'url', 'list']
}
}
}
A map in the format : { ' space separated typ tags ' : { ' suite ' : { ' test ' : [ ' build ' ' url ' ' list ' ] } } }
string_map
The output of _ConvertAggregatedResultsToStringMap.
The output of _ConvertAggregatedResultsToStringMap .