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()
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)
def __init__(self, name: str, comparator, arguments): TestFragment.__init__(self) self.name = name self.comparator = comparator self.arguments = arguments self.results = [None, None]
def __init__(self, code, taboo): TestFragment.__init__(self) self.code = code self.taboo = taboo