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

Description

Test:
the Advice system uses an index datastructure to support matching the bindings to get pairs of participants to connect by an individual advice channel.

This test covers the properties of this implementation datastructure in isolation. We employ special test entries , different from what is used in the advice system (contrary to the real thing we're not differentiating between advice request and advice provision, as for the test all we need is the possibility to set an "advice solution"). To use these test records, we create a specific instantiation of the advice::Index template solely for this test.

See also
advice.hpp
AdviceBasics_test
AdviceBindingPattern_test

Definition at line 139 of file advice-index-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void buildIndex (Index &idx)
 
void addRequest (Index &idx)
 
void addProvision (Index &idx)
 
void removeRequest (Index &idx)
 
void retractProvision (Index &idx)
 
void modifyRequest (Index &idx)
 
void modifyProvision (Index &idx)
 
void clearIndex (Index &idx)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 143 of file advice-index-test.cpp.

References AdviceIndex_test::addProvision(), AdviceIndex_test::addRequest(), AdviceIndex_test::buildIndex(), AdviceIndex_test::clearIndex(), AdviceIndex_test::modifyProvision(), AdviceIndex_test::modifyRequest(), AdviceIndex_test::removeRequest(), and AdviceIndex_test::retractProvision().

+ Here is the call graph for this function:

◆ buildIndex()

void buildIndex ( Index idx)
inlineprivate

Definition at line 160 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ addRequest()

void addRequest ( Index idx)
inlineprivate

Definition at line 185 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ addProvision()

void addProvision ( Index idx)
inlineprivate

Definition at line 204 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ removeRequest()

void removeRequest ( Index idx)
inlineprivate

Definition at line 242 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ retractProvision()

void retractProvision ( Index idx)
inlineprivate

Definition at line 275 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ modifyRequest()

void modifyRequest ( Index idx)
inlineprivate

Definition at line 322 of file advice-index-test.cpp.

References TestPOA::changeBinding(), and lumiera::advice::hash_value().

Referenced by AdviceIndex_test::run().

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

◆ modifyProvision()

void modifyProvision ( Index idx)
inlineprivate

Definition at line 352 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

+ Here is the caller graph for this function:

◆ clearIndex()

void clearIndex ( Index idx)
inlineprivate

Definition at line 415 of file advice-index-test.cpp.

Referenced by AdviceIndex_test::run().

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

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