Lumiera  0.pre.03
»edit your freedom«
advice-index-test.cpp File Reference

Go to the source code of this file.

Description

unit test AdviceIndex_test

Definition in file advice-index-test.cpp.

#include "lib/test/run.hpp"
#include "lib/hash-value.h"
#include "common/advice/index.hpp"
#include <vector>

Classes

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

Typedefs

typedef Index< TestPOA > Index
 

Functions

TestPOA & _entry (uint id, Literal spec)
 convenience shortcut for writing testcases inline
 
bool _hasDefault (uint req)
 check if the given request holds a default solution
 
bool _hasSolution (uint req, uint prov)
 check if the given request got the denoted solution
 
 LAUNCHER (AdviceIndex_test, "function common")
 Register this test class... More...
 
std::vector< TestPOA > testEntries (MAX_TEST_ENTRIES)
 

Variables

const uint MAX_TEST_ENTRIES = 10
 

Namespaces

 lumiera
 Lumiera public interface.
 

Function Documentation

◆ LAUNCHER()

lumiera::advice::test::LAUNCHER ( AdviceIndex_test  ,
"function common"   
)

Register this test class...