Lumiera  0.pre.03
»edit your freedom«
ActivityMatch Class Reference

#include "/Werk/devel/lumi/tests/vault/gear/activity-detector.hpp"

Description

ongoing evaluation and match of observed activities.

Remarks
this temporary object provides a builder API for creating chained verifications, similar to the usage of lib::test::EventLog. Moreover, it is convertible to bool to retrieve the verification result.

Definition at line 135 of file activity-detector.hpp.

Public Member Functions

ActivityMatchafterInvocation (string match)
 
ActivityMatchafterSeqIncrement (uint seqNr)
 
template<typename... ARGS>
ActivityMatcharg (ARGS const &...args)
 qualifier: additionally match the function arguments
 
ActivityMatchbeforeInvocation (string match)
 
ActivityMatchbeforeSeqIncrement (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...
 
ActivityMatchseq (uint seqNr)
 qualifier: additionally require the indicated sequence number
 
ActivityMatchtimeArg (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>
ActivityMatchdelegate (_Parent &(_Parent::*fun)(ARGS...), ARGS &&...args)
 
- Private Member Functions inherited from EventMatch
EventMatchafter (string match)
 find a match (substring match) of the given text in an EventLog entry before the current position, switching to backwards search direction
 
EventMatchafterCall (string match)
 find a function invocation backwards, before the current point of reference
 
EventMatchafterEvent (string match)
 
EventMatchafterEvent (string classifier, string match)
 
EventMatchafterMatch (string regExp)
 
template<typename... ARGS>
EventMatcharg (ARGS const &...args)
 refine filter to additionally require specific arguments More...
 
template<typename... ARGS>
EventMatchargMatch (ARGS const &...regExps)
 refine filter to additionally cover all arguments with a series of regular expressions. More...
 
template<typename ARG >
EventMatchargPos (size_t idx, ARG const &arg)
 refine filter to additionally require match on a specific positional argument
 
EventMatchattrib (string key, string valueMatch)
 refine filter to additionally match on a specific attribute
 
EventMatchbefore (string match)
 find a match (substring match) of the given text in an EventLog entry after the current position More...
 
EventMatchbeforeCall (string match)
 find a match for some function invocation after the current point of reference More...
 
EventMatchbeforeEvent (string match)
 find a match for an "event" after the current point of reference More...
 
EventMatchbeforeEvent (string classifier, string match)
 
EventMatchbeforeMatch (string regExp)
 find a match with the given regular expression
 
EventMatchid (string classifier)
 refine filter to additionally match on the ID attribute
 
EventMatchkey (string key)
 refine filter to additionally require the presence an attribute
 
EventMatchlocate (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...
 
EventMatchlocateCall (string match)
 basic search for some specific function invocation More...
 
EventMatchlocateEvent (string match)
 basic search for a matching "event" More...
 
EventMatchlocateEvent (string classifier, string match)
 
EventMatchlocateMatch (string regExp)
 basic search like locate() but with the given regular expression
 
EventMatchon (string targetID)
 refine filter to additionally match the 'this' attribute
 
EventMatchon (const char *targetID)
 
template<typename X >
EventMatchon (const X *const targetObj)
 
 operator bool () const
 final evaluation of the match query, usually triggered from the unit test CHECK(). More...
 
EventMatchtype (string typeID)
 refine filter to additionally require a matching log entry type
 

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

final evaluation of the verification query, usually triggered from the unit test CHECK().

Note
failure cause is printed to STDERR.

Definition at line 153 of file activity-detector.hpp.

References ActivityMatch::delegate().

+ Here is the call graph for this function:

◆ delegate()

ActivityMatch& delegate ( _Parent &(_Parent::*)(ARGS...)  fun,
ARGS &&...  args 
)
inlineprivate

helper to delegate to the inherited matcher building blocks

Note
since ActivityMatch can only be created by ActivityDetector, we can be sure the EventMatch reference returned from these calls is actually a reference to *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().

+ Here is the caller graph for this function:
+ Inheritance diagram for ActivityMatch:
+ Collaboration diagram for ActivityMatch:

The documentation for this class was generated from the following file: