Lumiera
0.pre.03
»edit your freedom«
|
#include "/Werk/devel/lumi/tests/vault/gear/activity-detector.hpp"
ongoing evaluation and match of observed activities.
bool
to retrieve the verification result. Definition at line 135 of file activity-detector.hpp.
Public Member Functions | |
ActivityMatch & | afterInvocation (string match) |
ActivityMatch & | afterSeqIncrement (uint seqNr) |
template<typename... ARGS> | |
ActivityMatch & | arg (ARGS const &...args) |
qualifier: additionally match the function arguments | |
ActivityMatch & | beforeInvocation (string match) |
ActivityMatch & | beforeSeqIncrement (uint seqNr) |
special query to match an increment of the sequence number | |
operator bool () const | |
final evaluation of the verification query, usually triggered from the unit test CHECK() . More... | |
ActivityMatch & | seq (uint seqNr) |
qualifier: additionally require the indicated sequence number | |
ActivityMatch & | timeArg (Time const &time) |
qualifier: additionally match the nominal time argument of JobFunctor invocation | |
Friends | |
class | ActivityDetector |
Private Types | |
using | _Parent = lib::test::EventMatch |
Private Member Functions | |
ActivityMatch (lib::test::EventMatch &&matcher) | |
template<typename... ARGS> | |
ActivityMatch & | delegate (_Parent &(_Parent::*fun)(ARGS...), ARGS &&...args) |
Private Member Functions inherited from EventMatch | |
EventMatch & | after (string match) |
find a match (substring match) of the given text in an EventLog entry before the current position, switching to backwards search direction | |
EventMatch & | afterCall (string match) |
find a function invocation backwards, before the current point of reference | |
EventMatch & | afterEvent (string match) |
EventMatch & | afterEvent (string classifier, string match) |
EventMatch & | afterMatch (string regExp) |
template<typename... ARGS> | |
EventMatch & | arg (ARGS const &...args) |
refine filter to additionally require specific arguments More... | |
template<typename... ARGS> | |
EventMatch & | argMatch (ARGS const &...regExps) |
refine filter to additionally cover all arguments with a series of regular expressions. More... | |
template<typename ARG > | |
EventMatch & | argPos (size_t idx, ARG const &arg) |
refine filter to additionally require match on a specific positional argument | |
EventMatch & | attrib (string key, string valueMatch) |
refine filter to additionally match on a specific attribute | |
EventMatch & | before (string match) |
find a match (substring match) of the given text in an EventLog entry after the current position More... | |
EventMatch & | beforeCall (string match) |
find a match for some function invocation after the current point of reference More... | |
EventMatch & | beforeEvent (string match) |
find a match for an "event" after the current point of reference More... | |
EventMatch & | beforeEvent (string classifier, string match) |
EventMatch & | beforeMatch (string regExp) |
find a match with the given regular expression | |
EventMatch & | id (string classifier) |
refine filter to additionally match on the ID attribute | |
EventMatch & | key (string key) |
refine filter to additionally require the presence an attribute | |
EventMatch & | locate (string match) |
basic search function: continue linear lookup over the elements of the EventLog to find a match (substring match) of the given text. More... | |
EventMatch & | locateCall (string match) |
basic search for some specific function invocation More... | |
EventMatch & | locateEvent (string match) |
basic search for a matching "event" More... | |
EventMatch & | locateEvent (string classifier, string match) |
EventMatch & | locateMatch (string regExp) |
basic search like locate() but with the given regular expression | |
EventMatch & | on (string targetID) |
refine filter to additionally match the 'this' attribute | |
EventMatch & | on (const char *targetID) |
template<typename X > | |
EventMatch & | on (const X *const targetObj) |
operator bool () const | |
final evaluation of the match query, usually triggered from the unit test CHECK() . More... | |
EventMatch & | type (string typeID) |
refine filter to additionally require a matching log entry type | |
|
inline |
final evaluation of the verification query, usually triggered from the unit test CHECK()
.
Definition at line 153 of file activity-detector.hpp.
References ActivityMatch::delegate().
|
inlineprivate |
helper to delegate to the inherited matcher building blocks
*this
, and can thus be downcasted. Definition at line 211 of file activity-detector.hpp.
Referenced by ActivityMatch::arg(), ActivityMatch::operator bool(), and ActivityMatch::timeArg().