Exemple #1
0
 def __init__(self, arguments: EnhancedFunctionArguments,
              tested_function: TestedFunction):
     TestFragment.__init__(self)
     self.arguments = arguments
     self.tested_function = tested_function
     self.results = [None, None]
     self.consolidator = TestVerdictConsolidator()
Exemple #2
0
 def __init__(self, code, taboo):
     TestFragment.__init__(self)
     try:
         self.code = code
         self.taboo = taboo
         if not taboo:
             self.taboo = []
         elif isinstance(taboo, str):
             self.taboo = [
                 taboo,
             ]
         self.taboo = tuple(map(re.compile, self.taboo))
     except Exception as e:
         raise TestBenchException(
             "Taboo regular expressions {} are not understable".
             format(taboo), e)
Exemple #3
0
 def __init__(self, name: str, comparator, arguments):
     TestFragment.__init__(self)
     self.name = name
     self.comparator = comparator
     self.arguments = arguments
     self.results = [None, None]
Exemple #4
0
 def __init__(self, code, taboo):
     TestFragment.__init__(self)
     self.code = code
     self.taboo = taboo
Exemple #5
0
			def __init__(self, name: str, comparator, arguments):
				TestFragment.__init__(self)
				self.name = name
				self.comparator = comparator
				self.arguments = arguments
				self.results = [None, None]
Exemple #6
0
			def __init__(self, code, taboo):
				TestFragment.__init__(self)
				self.code = code
				self.taboo = taboo