Lumiera  0.pre.03
»edit your freedom«
multifact-singleton-test.cpp File Reference

Go to the source code of this file.

Description

unit test MultiFactSingleton_test

Definition in file multifact-singleton-test.cpp.

#include "lib/test/run.hpp"
#include "lib/test/test-helper.hpp"
#include "lib/multifact.hpp"
#include "lib/format-cout.hpp"
#include "lib/util.hpp"
#include <boost/lexical_cast.hpp>
#include <string>

Classes

class  Implementation< ii >
 
struct  Interface
 
class  MultiFactSingleton_test
 

Typedefs

typedef factory::MultiFact< Interface &, theID > TestFactory
 

Enumerations

enum  theID {
  ONE = 1,
  TWO,
  THR,
  FOU
}
 

Functions

 LAUNCHER (MultiFactSingleton_test, "unit common")
 Register this test class... More...
 

Variables

TestFactory::Singleton< Implementation< ONE > > holder1 {theFact,ONE}
 
TestFactory::Singleton< Implementation< TWO > > holder2 {theFact,TWO}
 
TestFactory::Singleton< Implementation< THR > > holder3 {theFact,THR}
 
TestFactory::Singleton< Implementation< FOU > > holder4 {theFact,FOU}
 
TestFactory theFact
 Factory instance for the tests... More...
 

Namespaces

 lib
 Implementation namespace for support and library code.
 

Function Documentation

◆ LAUNCHER()

lib::test::LAUNCHER ( MultiFactSingleton_test  ,
"unit common"   
)

Register this test class...