tools/perf/generate_legacy_perf_dashboard_json_unittest.py
def _ConstructParseAndCheckJSON(
      self, inputfiles, logfiles, graphs):
    """Processes input with a log processor and checks against expectations.

    Args:
      inputfiles: A list of input performance result log file names.
      logfiles: A list of expected output ".dat" file names.
      subdir: Subdirectory containing expected output files.
      log_processor_class: A log processor class.
    """
    logs = self._ConstructParseAndCheckLogfiles(inputfiles, graphs)
    index = 0
    for filename in logfiles:
      graph_name = graphs[index]
      actual = logs[graph_name]
      path = os.path.join(self.data_directory, filename)
      expected = json.load(open(path))
      self.assertEqual(expected, actual, 'JSON data in %s did not match '
          'expectations.' % filename)

      index += 1
Processes input with a log processor and checks against expectations.

    Args:
      inputfiles: A list of input performance result log file names.
      logfiles: A list of expected output ".dat" file names.
      subdir: Subdirectory containing expected output files.
      log_processor_class: A log processor class.
    
Processes input with a log processor and checks against expectations.
Processes input with a log processor and checks against expectations .
def _ConstructParseAndCheckJSON(
      self, inputfiles, logfiles, graphs):
    logs = self._ConstructParseAndCheckLogfiles(inputfiles, graphs)
    index = 0
    for filename in logfiles:
      graph_name = graphs[index]
      actual = logs[graph_name]
      path = os.path.join(self.data_directory, filename)
      expected = json.load(open(path))
      self.assertEqual(expected, actual, 'JSON data in %s did not match '
          'expectations.' % filename)
      index += 1
def _ConstructParseAndCheckJSON ( self , inputfiles , logfiles , graphs ) : logs = self . _ConstructParseAndCheckLogfiles ( inputfiles , graphs ) index = 0 for filename in logfiles : graph_name = graphs [ index ] actual = logs [ graph_name ] path = os . path . join ( self . data_directory , filename ) expected = json . load ( open ( path ) ) self . assertEqual ( expected , actual , 'JSON data in %s did not match ' 'expectations.' % filename ) index += 1
Processes input with a log processor and checks against expectations.
Processes input with a log processor and checks against expectations .
"""Processes input with a log processor and checks against expectations.

    Args:
      inputfiles: A list of input performance result log file names.
      logfiles: A list of expected output ".dat" file names.
      subdir: Subdirectory containing expected output files.
      log_processor_class: A log processor class.
    """
self
inputfiles
A list of input performance result log file names.
A list of input performance result log file names .
logfiles
A list of expected output ".dat" file names.
A list of expected output " . dat " file names .
graphs
subdir
Subdirectory containing expected output files.
Subdirectory containing expected output files .
log_processor_class
A log processor class.
A log processor class .