def _getMelChecks( metacls, index_proc, check_cls ): """ :return: list( checkInstance, ... ) list of checkinstances represeting mel based checkes :param index_proc: method returning the index declaring the tests :param check_cls: class used to instance new checks""" output = list() try: index = Mel.call( index_proc ) except RuntimeError, e: log.warn( str( e ) )
def _getMelChecks(metacls, index_proc, check_cls): """ :return: list( checkInstance, ... ) list of checkinstances represeting mel based checkes :param index_proc: method returning the index declaring the tests :param check_cls: class used to instance new checks""" output = list() try: index = Mel.call(index_proc) except RuntimeError, e: log.warn(str(e))
def handleMELCheck( self, check, mode ): """Called to handle the given check in the given mode :raise RuntimeError: If MEL throws an error :return: QACheckResult of the result generated by MEL""" assert self.mel_check_proc assert isinstance( check.attr, QAMELCheckAttribute ) rval = Mel.call( self.mel_check_proc, check.name(), int( mode == self.eMode.fix ) ) return self._rval_to_checkResult( rval )
def handleMELCheck(self, check, mode): """Called to handle the given check in the given mode :raise RuntimeError: If MEL throws an error :return: QACheckResult of the result generated by MEL""" assert self.mel_check_proc assert isinstance(check.attr, QAMELCheckAttribute) rval = Mel.call(self.mel_check_proc, check.name(), int(mode == self.eMode.fix)) return self._rval_to_checkResult(rval)