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

#include "lib/diff/test-mutation-target.hpp"

Description

Test adapter to watch and verify how the TreeMutator binds to custom tree data structures.

As a data structure, the TestMutationTarget builds an »External Tree Description« reflecting the actual data structure, as can be inferred through listening to all handled diff mutation primitives. Besides, each of these primitives is recorded in the embedded EventLog.

See also
TreeMutatorBinding_test::mutateDummy()

Definition at line 195 of file test-mutation-target.hpp.

Public Types

using const_iterator = typename iter_stl::_SeqT< const VecG >::Range
 
using iterator = typename iter_stl::_SeqT< VecG >::Range
 

Public Member Functions

const_iterator begin () const
 
bool empty () const
 
const_iterator end () const
 
EventMatch ensureNot (string match) const
 
EventLog const & getLog () const
 
iterator initMutation (string mutatorID)
 
void inject (GenNode &&elm, string operationID)
 
iterator lastElm ()
 
iterator locate (GenNode::ID const &targetID)
 
void logAssignment (GenNode const &target, string oldPayload)
 
void logMutation (GenNode const &target)
 
void logScopeCompletion (iterator processingPos)
 
void logSkip (GenNode const &content)
 
string showContent () const
 render payload content for diagnostics
 
string showSrcBuffer () const
 render elements waiting in source buffer to be accepted
 
iterator srcIter ()
 
EventMatch verify (string match) const
 
EventMatch verifyCall (string match) const
 
EventMatch verifyEvent (string match) const
 
EventMatch verifyEvent (string classifier, string match) const
 
EventMatch verifyMatch (string regExp) const
 

Static Public Member Functions

static iterator search (GenNode::ID const &targetID, iterator pos)
 

Friends

const_iterator begin (TestMutationTarget const &target)
 
const_iterator end (TestMutationTarget const &target)
 

Private Types

using VecG = std::vector< GenNode >
 

Private Attributes

VecG content_ {}
 
EventLog log_ {identify (this)}
 
VecG prev_content_ {}
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for TestMutationTarget:
+ Collaboration diagram for TestMutationTarget:

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