コード例 #1
0
ファイル: load_tracking.py プロジェクト: xuezhilei40308/lisa
    def _df_either_event(self, events):
        missing = []
        for event in events:
            try:
                return self._df_uniformized_signal(event)
            except MissingTraceEventError as e:
                missing.append(e.missing_events)

        missing = OrTraceEventChecker.from_events(missing)
        raise MissingTraceEventError(missing, self.trace.available_events)
コード例 #2
0
class TestEventChecker_or3(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['arthur', 'lancelot'])
    expected_success = False
コード例 #3
0
class TestEventChecker_or2(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
コード例 #4
0
class TestEventChecker_or1(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['foo', 'bar'])
コード例 #5
0
class TestEventChecker_or2(TestEventCheckerBase):
    __test__ = True

    checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
コード例 #6
0
class TestEventChecker_or1(TestEventCheckerBase):
    __test__ = True

    checker = OrTraceEventChecker.from_events(['foo', 'bar'])