lisa.trace.EmptyTraceEventChecker#
- class lisa.trace.EmptyTraceEventChecker(check=True)[source]#
Bases:
TraceEventCheckerBase
Check for no event at all.
- Parameters:
check (bool) – Check that the listed events are present in the
self.trace
attribute of the instance on which the decorated method is applied. If no such attribute is found, no check will be done.
Properties
logger
inheritedConvenience short-hand for
self.get_logger()
.Methods
Return a set of all events that are checked by this checker.
Apply the given function to all the children and rebuild a new object with the result.
__and__()
inheritedCombine two event checkers into one that checks the presence of both.
__call__()
inheritedDecorator for methods that require some given trace events.
__class_getitem__()
inheritedSee
collections.abc.Iterable.__class_getitem__()
__contains__()
inherited__getitem__()
inherited__iter__()
inherited__len__()
inherited__matmul__()
inheritedCombine two event checkers into an optional one.
__or__()
inheritedCombine two event checkers into one that checks the presence of either of them.
__reversed__()
inheritedSee
collections.abc.Sequence.__reversed__()
check_events()
inheritedCheck that certain trace events are available in the given set of events.
count()
inheritedSee
collections.abc.Sequence.count()
doc_str()
inheritedTop-level function called by Sphinx’s autodoc extension to augment docstrings of the functions.
expand_namespaces()
inheritedBuild a
TraceEventCheckerBase
that will fixup the event names to take into account the given namespaces.get_logger()
inheritedProvides a
logging.Logger
named aftercls
.index()
inheritedSee
collections.abc.Sequence.index()
log_locals()
inheritedDebugging aid: log the local variables of the calling function.
Properties#
- property EmptyTraceEventChecker.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
Methods#
- EmptyTraceEventChecker.get_all_events()[source]#
Return a set of all events that are checked by this checker.
That may be a superset of events that are strictly required, when the checker checks a logical OR combination of events for example.
- EmptyTraceEventChecker.map(f)[source]#
Apply the given function to all the children and rebuild a new object with the result.
- EmptyTraceEventChecker.__and__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__and__()
Combine two event checkers into one that checks the presence of both.
- EmptyTraceEventChecker.__call__(f)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__call__()
Decorator for methods that require some given trace events.
- classmethod EmptyTraceEventChecker.__class_getitem__()#
Inherited method, see
collections.abc.Iterable.__class_getitem__()
- EmptyTraceEventChecker.__contains__(event)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__contains__()
- EmptyTraceEventChecker.__getitem__(i)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__getitem__()
- EmptyTraceEventChecker.__iter__()#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__iter__()
- EmptyTraceEventChecker.__len__(event)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__len__()
- EmptyTraceEventChecker.__matmul__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__matmul__()
Combine two event checkers into an optional one.
- EmptyTraceEventChecker.__or__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__or__()
Combine two event checkers into one that checks the presence of either of them.
- EmptyTraceEventChecker.__reversed__()#
Inherited method, see
collections.abc.Sequence.__reversed__()
- EmptyTraceEventChecker.check_events(event_set, check_optional=False, namespaces=None)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.check_events()
Check that certain trace events are available in the given set of events.
- EmptyTraceEventChecker.count()#
Inherited method, see
collections.abc.Sequence.count()
- EmptyTraceEventChecker.doc_str()#
Inherited method, see
lisa.trace.TraceEventCheckerBase.doc_str()
Top-level function called by Sphinx’s autodoc extension to augment docstrings of the functions.
- EmptyTraceEventChecker.expand_namespaces(namespaces=None)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.expand_namespaces()
Build a
TraceEventCheckerBase
that will fixup the event names to take into account the given namespaces.
- classmethod EmptyTraceEventChecker.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- EmptyTraceEventChecker.index()#
Inherited method, see
collections.abc.Sequence.index()
- classmethod EmptyTraceEventChecker.log_locals(var_names=None, level='debug')#
Inherited method, see
lisa.utils.Loggable.log_locals()
Debugging aid: log the local variables of the calling function.