def __init__(self, group, generator, incrementor = 1, maxSteps = -1, startStep = None): ''' @type group: Group @param group: Group this generator belongs to @type generator: Generator @param generator: Generator to repeate @type incrementor: number @param incrementor: Multiplier against round count @type maxSteps: number @param maxSteps: Maximum repeates @type startSteps: number @param startSteps: Start at this step ''' Generator.__init__(self) self._incrementor = None self._roundCount = 1 self._generator = None self._maxSteps = -1 self._generator = generator self._incrementor = incrementor self.setGroup(group) self._maxSteps = maxSteps self._startStep = startStep if self._startStep != None: self._roundCount = self._startStep
def __init__(self, group, generator, incrementor=1, maxSteps=-1, startStep=None): ''' @type group: Group @param group: Group this generator belongs to @type generator: Generator @param generator: Generator to repeate @type incrementor: number @param incrementor: Multiplier against round count @type maxSteps: number @param maxSteps: Maximum repeates @type startSteps: number @param startSteps: Start at this step ''' Generator.__init__(self) self._incrementor = None self._roundCount = 1 self._generator = None self._maxSteps = -1 self._generator = generator self._incrementor = incrementor self.setGroup(group) self._maxSteps = maxSteps self._startStep = startStep if self._startStep != None: self._roundCount = self._startStep
def __init__(self, group, testFiles=None): """ @type group: Group @param group: Group this Generator belongs to @type testFiles: string @param testFiles: Location of test files """ Generator.__init__(self) p = None if not (hasattr(sys, "frozen") and sys.frozen == "console_exe"): p = Peach.Generators.static.__file__[:-10] else: p = os.path.dirname(os.path.abspath(sys.executable)) testFiles = os.path.join(p, "xmltests") self._generatorList = GeneratorList( group, [ XmlParserTestsInvalid(None, testFiles), XmlParserTestsNotWellFormed(None, testFiles), XmlParserTestsValid(None, testFiles), ], )
def __init__(self, xml, repetitions = None): Generator.__init__(self) self._xmlString = xml if repetitions != None: self._repetitions = repetitions self._fuzzer = xmlFuzzer() self._fuzzer.setRepetitions(self._repetitions) self.reset()
def __init__(self, xml, repetitions=None): Generator.__init__(self) self._xmlString = xml if repetitions != None: self._repetitions = repetitions self._fuzzer = xmlFuzzer() self._fuzzer.setRepetitions(self._repetitions) self.reset()
def __init__(self, group, generator, incrementor): """ @type group: Group @param group: Group this generator belongs to @type generator: Generator @param generator: Generator to repeat @type incrementor: Generator @param incrementor: Multiplier against round count """ Generator.__init__(self) self._incrementor = None self._roundCount = 1 self._generator = None self._generator = generator self._incrementor = incrementor self.setGroup(group)
def __init__(self, group, testFiles=None): """ @type group: Group @param group: Group this Generator belongs to @type testFiles: string @param testFiles: Location of test files """ Generator.__init__(self) p = None if not (hasattr(sys, "frozen") and sys.frozen == "console_exe"): p = Peach.Generators.static.__file__[:-10] else: p = os.path.dirname(os.path.abspath(sys.executable)) testFiles = os.path.join(p, "xmltests") self._generatorList = GeneratorList(group, [XmlParserTestsInvalid(None, testFiles), XmlParserTestsNotWellFormed(None, testFiles), XmlParserTestsValid(None, testFiles)])
def __init__(self, group, testsFolder, testsFile): ''' @type group: Group @param group: Group this Generator belongs to @type testsFolder: string @param testsFolder: Location of test files @type testsFile: string @param testsFile: File with listing of test files ''' Generator.__init__(self) self._testsFolder = 'xmltests' self._testsFile = 'invalid.txt' self._currentValue = None self._currentTestNum = 1 self._currentFilename = None self._fdTests = None self._fd = None self.setGroup(group) if testsFile != None: self._testsFile = testsFile if testsFolder != None: self._testsFolder = testsFolder
def __init__(self, group, testsFolder, testsFile): """ @type group: Group @param group: Group this Generator belongs to @type testsFolder: string @param testsFolder: Location of test files @type testsFile: string @param testsFile: File with listing of test files """ Generator.__init__(self) self._testsFolder = 'xmltests' self._testsFile = 'invalid.txt' self._currentValue = None self._currentTestNum = 1 self._currentFilename = None self._fdTests = None self._fd = None self.setGroup(group) if testsFile is not None: self._testsFile = testsFile if testsFolder is not None: self._testsFolder = testsFolder