Lumiera  0.pre.03
»edit your freedom«
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

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

Member Function Documentation

◆ 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.

◆ 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.

◆ 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.

+ Inheritance diagram for AdviceConfiguration_test:
+ Collaboration diagram for AdviceConfiguration_test:

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