Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
advice-index-test.cpp File Reference

unit test AdviceIndex_test More...

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>

Namespaces

namespace  lumiera
 Lumiera public interface.
 
namespace  lumiera::advice
 
namespace  lumiera::advice::test
 
namespace  lumiera::advice::test::anonymous_namespace{advice-index-test.cpp}
 

Typedefs

typedef Index< TestPOA > Index
 

Classes

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

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
 
 LAUNCHER (AdviceIndex_test, "function common")
 Register this test class...
 

Variables

const uint MAX_TEST_ENTRIES = 10