Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::benchmark::Benchmark::CreateTestsFromFile (   self,
  select_mode = 'weighted' 

Open an input file, and pass the data to CreateTests.

Definition at line 74 of file benchmark.py.

00074                                                                  :
    """Open an input file, and pass the data to CreateTests."""
    filename = util.FindDataFile(filename)
    self.msg('Reading test data from %s' % filename)
    input_data = open(filename).readlines()
    return self.CreateTests(input_data, select_mode=select_mode)

  def CreateTests(self, input_data, select_mode='weighted'):

Generated by  Doxygen 1.6.0   Back to index