Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lumiera::advice::test::anonymous_namespace{advice-index-test.cpp} Namespace Reference

Classes

struct  TestPOA
 Test dummy record, representing either a provision or an request. More...
 

Functions

std::vector< TestPOAtestEntries (MAX_TEST_ENTRIES)
 
TestPOA_entry (uint id, Literal spec)
 convenience shortcut for writing testcases inline
 
bool _hasSolution (uint req, uint prov)
 check if the given request got the denoted solution
 
bool _hasDefault (uint req)
 check if the given request holds a default solution
 

Variables

const uint MAX_TEST_ENTRIES = 10
 

Function Documentation

◆ testEntries()

std::vector< TestPOA > testEntries ( MAX_TEST_ENTRIES  )

References testEntries().

Referenced by _entry(), _hasDefault(), _hasSolution(), and testEntries().

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

◆ _entry()

TestPOA & _entry ( uint  id,
Literal  spec 
)
inline

convenience shortcut for writing testcases inline

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

References _entry(), lumiera::advice::matches(), and testEntries().

Referenced by _entry().

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

◆ _hasSolution()

bool _hasSolution ( uint  req,
uint  prov 
)
inline

check if the given request got the denoted solution

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

References _hasSolution(), and testEntries().

Referenced by _hasSolution().

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

◆ _hasDefault()

bool _hasDefault ( uint  req)
inline

check if the given request holds a default solution

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

References _hasDefault(), NULL, and testEntries().

Referenced by _hasDefault().

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

Variable Documentation

◆ MAX_TEST_ENTRIES

const uint MAX_TEST_ENTRIES = 10

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