parameters: (self, test_name, tests)
docstring: Insert a test item with its results to the given tests dictionary.
  
      Args:
        tests: Dictionary containing test result entries.
docstring_summary: Insert a test item with its results to the given tests dictionary.
docstring_tokens: Insert a test item with its results to the given tests dictionary .
function: def _InsertTestTimeAndResult(self, test_name, tests):
      """ Insert a test item with its results to the given tests dictionary.
  
      Args:
        tests: Dictionary containing test result entries.
      """
  
      result = self._get_result_char(test_name)
      test_time = self._GetTestTiming(test_name)
  
      this_test = tests
      for segment in test_name.split('/'):
        if segment not in this_test:
          this_test[segment] = {}
        this_test = this_test[segment]
  
      if len(this_test) == 0:
        self._PopulateResultsAndTimesJSON(this_test)
  
      if self.RESULTS in this_test:
        self._InsertItemRunLengthEncoded(result, this_test[self.RESULTS])
      else:
        this_test[self.RESULTS] = [[1, result]]
  
      if self.TIMES in this_test:
        self._InsertItemRunLengthEncoded(test_time, this_test[self.TIMES])
      else:
        this_test[self.TIMES] = [[1, test_time]]
function_tokens: def _InsertTestTimeAndResult ( self , test_name , tests ) : result = self . _get_result_char ( test_name ) test_time = self . _GetTestTiming ( test_name ) this_test = tests for segment in test_name . split ( '/' ) : if segment not in this_test : this_test [ segment ] = { } this_test = this_test [ segment ] if len ( this_test ) == 0 : self . _PopulateResultsAndTimesJSON ( this_test ) if self . RESULTS in this_test : self . _InsertItemRunLengthEncoded ( result , this_test [ self . RESULTS ] ) else : this_test [ self . RESULTS ] = [ [ 1 , result ] ] if self . TIMES in this_test : self . _InsertItemRunLengthEncoded ( test_time , this_test [ self . TIMES ] ) else : this_test [ self . TIMES ] = [ [ 1 , test_time ] ]