testing/unexpected_passes_common/result_output.py
def _ConvertUnusedExpectationsToStringDict(unused_expectations):
  """Converts |unused_expectations| to a dict of strings for reporting.

  Args:
    unused_expectations: A dict mapping expectation file (str) to lists of
        data_types.Expectation who did not have any matching results.

  Returns:
    A string dictionary representation of |unused_expectations| in the following
    format:
    {
      expectation_file: [
        expectation1,
        expectation2,
      ],
    }
    The expectations are in a format similar to what would be present as a line
    in an expectation file.
  """
  output_dict = {}
  for expectation_file, expectations in unused_expectations.items():
    expectation_str_list = []
    for e in expectations:
      expectation_str_list.append(
          '[ %s ] %s [ %s ]' %
          (' '.join(e.tags), e.test, ' '.join(e.expected_results)))
    output_dict[expectation_file] = expectation_str_list
  return output_dict
Converts |unused_expectations| to a dict of strings for reporting.

  Args:
    unused_expectations: A dict mapping expectation file (str) to lists of
        data_types.Expectation who did not have any matching results.

  Returns:
    A string dictionary representation of |unused_expectations| in the following
    format:
    {
      expectation_file: [
        expectation1,
        expectation2,
      ],
    }
    The expectations are in a format similar to what would be present as a line
    in an expectation file.
  
Converts |unused_expectations| to a dict of strings for reporting.
Converts |unused_expectations| to a dict of strings for reporting .
def _ConvertUnusedExpectationsToStringDict(unused_expectations):
  output_dict = {}
  for expectation_file, expectations in unused_expectations.items():
    expectation_str_list = []
    for e in expectations:
      expectation_str_list.append(
          '[ %s ] %s [ %s ]' %
          (' '.join(e.tags), e.test, ' '.join(e.expected_results)))
    output_dict[expectation_file] = expectation_str_list
  return output_dict
def _ConvertUnusedExpectationsToStringDict ( unused_expectations ) : output_dict = { } for expectation_file , expectations in unused_expectations . items ( ) : expectation_str_list = [ ] for e in expectations : expectation_str_list . append ( '[ %s ] %s [ %s ]' % ( ' ' . join ( e . tags ) , e . test , ' ' . join ( e . expected_results ) ) ) output_dict [ expectation_file ] = expectation_str_list return output_dict
Converts |unused_expectations| to a dict of strings for reporting.
Converts |unused_expectations| to a dict of strings for reporting .
"""Converts |unused_expectations| to a dict of strings for reporting.

  Args:
    unused_expectations: A dict mapping expectation file (str) to lists of
        data_types.Expectation who did not have any matching results.

  Returns:
    A string dictionary representation of |unused_expectations| in the following
    format:
    {
      expectation_file: [
        expectation1,
        expectation2,
      ],
    }
    The expectations are in a format similar to what would be present as a line
    in an expectation file.
  """
A string dictionary representation of |unused_expectations| in the following
format:
{
expectation_file: [
expectation1,
expectation2,
],
}
The expectations are in a format similar to what would be present as a line
in an expectation file.
A string dictionary representation of |unused_expectations| in the following format : { expectation_file : [ expectation1 expectation2 ] } The expectations are in a format similar to what would be present as a line in an expectation file .
unused_expectations
A dict mapping expectation file (str) to lists of
data_types.Expectation who did not have any matching results.
A dict mapping expectation file ( str ) to lists of data_types . Expectation who did not have any matching results .