Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
CommandUse2_test Class Reference

Description

Test:
command usage aspects II: patterns of command invocation.
Todo:
this test is still on hold, as the non-trivial patterns aren't implemented as of 10/09 ////////////////TICKET #211
See also
Command
command-basic-test.cpp (simple usage example)

Definition at line 82 of file command-use2-test.cpp.

Private Member Functions

string randomTxt ()
 
virtual void run (Arg)
 
void check_defaultHandlingPattern ()
 
void check_ThrowOnError ()
 
void check_DispatcherInvocation ()
 

Private Attributes

int randVal_
 
bool blowUp_
 

Member Function Documentation

◆ randomTxt()

string randomTxt ( )
inlineprivate

Definition at line 87 of file command-use2-test.cpp.

References CommandUse2_test::randVal_.

Referenced by CommandUse2_test::run().

+ Here is the caller graph for this function:

◆ run()

◆ check_defaultHandlingPattern()

void check_defaultHandlingPattern ( )
inlineprivate

Definition at line 134 of file command-use2-test.cpp.

References CommandUse2_test::blowUp_, steam::control::test::command2::check_, Command::get(), lumiera_error_peek(), steam::control::test::protocolled(), CommandUse2_test::randVal_, and Command::undo().

Referenced by CommandUse2_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_ThrowOnError()

void check_ThrowOnError ( )
inlineprivate

Definition at line 169 of file command-use2-test.cpp.

References CommandUse2_test::blowUp_, steam::control::test::command2::check_, Command::exec(), HandlingPattern::get(), Command::get(), steam::control::test::protocolled(), CommandUse2_test::randVal_, Command::setHandlingPattern(), Command::storeDef(), HandlingPattern::SYNC_THROW, and VERIFY_ERROR.

+ Here is the call graph for this function:

◆ check_DispatcherInvocation()

void check_DispatcherInvocation ( )
inlineprivate
Test:
simplified integration test of command dispatch
  • performs the minimal actions necessary to start the session loop thread
  • then issues a test command, which will be queued and dispatched by the SteamDispatcher. Like in the real application, the command executions happens in the dedicated session loop thread, and thus we have to wait a moment, after which execution can be verified.
  • finally the SteamDispatcher is signalled to shut down.
See also
SessionCommandFunction_test for much more in-depth coverage of this aspect

Definition at line 214 of file command-use2-test.cpp.

References __DELAY__, steam::control::test::command2::check_, SessionCommand::facade, SteamDispatcher::instance, lumiera_interfaceregistry_destroy(), lumiera_interfaceregistry_init(), and lumiera::throwOnError().

Referenced by CommandUse2_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ randVal_

◆ blowUp_

+ Inheritance diagram for CommandUse2_test:
+ Collaboration diagram for CommandUse2_test:

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