code: def add_result(self, scan_id, result_type, host='', name='', value='',
                     port='', test_id='', severity='', qod=''):
          
  
          assert scan_id
          assert len(name) or len(value)
          result = dict()
          result['type'] = result_type
          result['name'] = name
          result['severity'] = severity
          result['test_id'] = test_id
          result['value'] = value
          result['host'] = host
          result['port'] = port
          result['qod'] = qod
          results = self.scans_table[scan_id]['results']
          results.append(result)
          # Set scan_info's results to propagate results to parent process.
          self.scans_table[scan_id]['results'] = results
docs: Add a result to a scan in the table.