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

Description

Test:
check creation of a command implementation clone from top level, without disclosing specific type information about the involved closure.

This includes verifying sane allocation management.

Note
this test covers a very specific low-level perspective, but on an integration level, involving TypedAllocationManager, CommandRegistry, CommandImpl, CmdClosure, StorageHolder, UndoMutation, MementoTie. Closes: Ticket #298
See also
Command
CommandRegistry
command.cpp
command-use1-test.cpp

Definition at line 73 of file command-clone-builder-test.cpp.

Private Member Functions

void bindRandArgument (CommandImpl &cmd)
 Helper: create random command parameter binding.
 
PCmdImpl buildTestImplFrame (CommandRegistry &registry)
 
virtual void run (Arg)
 
void verifySeparation (PCmdImpl orig, PCmdImpl copy)
 

Member Function Documentation

◆ verifySeparation()

void verifySeparation ( PCmdImpl  orig,
PCmdImpl  copy 
)
inlineprivate
Test:
verify the two command implementation frames are indeed separate objects without interconnection.

Performing an simulated command execution-undo cycle on both instances and verify difference.

Definition at line 135 of file command-clone-builder-test.cpp.

References HandlingPattern::get().

+ Here is the call graph for this function:
+ Inheritance diagram for CommandCloneBuilder_test:
+ Collaboration diagram for CommandCloneBuilder_test:

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