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

Description

Test:
this is a collection of tests to cover the configuration options available as policy arguments when establishing the collaboration.
  • default advice values, or blocking or throwing
  • using activation signals on both sides
  • dispatch without locking (TODO any chance we can cover this by test??)
  • more to come....
Todo:
partially unimplemented and thus commented out ////////////////////TICKET #605
See also
advice.hpp
AdviceBasics_test
AdviceSituations_test

Definition at line 70 of file advice-configuration-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void checkDefaultAdvice ()
 
void checkSignals ()
 
void blockOnAdvice ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 74 of file advice-configuration-test.cpp.

References AdviceConfiguration_test::blockOnAdvice(), AdviceConfiguration_test::checkDefaultAdvice(), and AdviceConfiguration_test::checkSignals().

+ Here is the call graph for this function:

◆ checkDefaultAdvice()

void checkDefaultAdvice ( )
inlineprivate
Test:
typically, advice is a default constructible value, so there is a natural fallback in case no active advice provision exists. Alternatively we may specify to throw.

Definition at line 87 of file advice-configuration-test.cpp.

Referenced by AdviceConfiguration_test::run().

+ Here is the caller graph for this function:

◆ checkSignals()

void checkSignals ( )
inlineprivate
Test:
when opening the advice collaboration, both sides may independently install a signal (callback functor) to be invoked when the actual advice solution gets established.

Definition at line 99 of file advice-configuration-test.cpp.

Referenced by AdviceConfiguration_test::run().

+ Here is the caller graph for this function:

◆ blockOnAdvice()

void blockOnAdvice ( )
inlineprivate
Test:
instead of allowing default advice values, both sides may enter a blocking wait until an advice solution is available. This is implemented as special case of using signals

Definition at line 111 of file advice-configuration-test.cpp.

Referenced by AdviceConfiguration_test::run().

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

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