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

Description

Test:
cover command equality detection.

Two commands are deemed equivalent, if they are based on the same CommandImpl record. This means, we only rely on the identity of those commands, but do not check the equivalence of their backing implementations. The latter can not be possibly implemented in a totally airtight fashion, and for this reason, the C++ standard decided not to support comparison between std::function objects.

See also
control::Command
control::CommandImpl
command-basic-test.hpp

Definition at line 111 of file command-equality-test.cpp.

Private Member Functions

string execCommand (Command com)
 Helper: invoke and undo a command,. More...
 
virtual void run (Arg)
 

Member Function Documentation

◆ execCommand()

string execCommand ( Command  com)
inlineprivate

Helper: invoke and undo a command,.

Returns
resulting operation protocol

Definition at line 157 of file command-equality-test.cpp.

+ Inheritance diagram for CommandEquality_test:
+ Collaboration diagram for CommandEquality_test:

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