Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 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]
Exemplo n.º 4
0
 def __init__(self, code, taboo):
     TestFragment.__init__(self)
     self.code = code
     self.taboo = taboo
Exemplo n.º 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]
Exemplo n.º 6
0
			def __init__(self, code, taboo):
				TestFragment.__init__(self)
				self.code = code
				self.taboo = taboo