Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lib::test Namespace Reference

Namespaces

 test
 

Typedefs

typedef ScopedCollection
< Dummy, sizeof(SubDummy)> 
CollD
 
typedef std::unordered_map
< int, int > 
HMapII
 
typedef
std::unordered_multimap< int,
int > 
HMMapII
 
typedef ScopedHolder< DummyHolderD
 
typedef std::unordered_map
< Symbol, string, hash< Symbol > > 
HTable
 
typedef IterStack< int > IStack
 
typedef LinkedElements< Nummy > List
 default case: ownership for heap allocated nodes More...
 
typedef LinkedElements< Nummy,
linked_elements::UseAllocationCluster > 
ListCustomAllocated
 creating nodes in-place, using a custom allocator for creation and disposal More...
 
typedef LinkedElements< Nummy,
linked_elements::NoOwnership
ListNotOwner
 managing existing node elements without taking ownership More...
 
typedef std::map< int, int > MapII
 
typedef DiagnosticContext< uint > Marker
 Subject of this test: a thread-local stack of int values. More...
 
typedef HashIndexed< TestB,
hash::LuidH
Mixin
 Base class to mix in the hash ID facility. More...
 
typedef std::multimap< int, int > MMapII
 
typedef OpaqueHolder< Base > Opaque
 
typedef PolymorphicValue
< Interface, MAX_SIZ > 
PolyVal
 
typedef ScopedPtrHolder< DummyPtrHolderD
 
typedef vector< OpaqueTestList
 
typedef Variant< Types< bool,
int, string, Time > > 
TestVariant
 
typedef std::vector< int > VecI
 
typedef ScopedPtrVect< DummyVectD
 

Classes

class  AllocationCluster_test
 
class  CallQueue_test
 
class  CmdlineWrapper_test
 
class  CustomSharedPtr_test
 
class  DelStash_test
 
struct  Depend4Test
 Scoped object for installing/deinstalling a mocked service automatically. More...
 
class  DependencyFactory_test
 
class  DiagnosticContext_test
 
class  Dummy
 
struct  DummyAncestor
 
class  EventLog
 Helper to log and verify the occurrence of events. More...
 
class  EventMatch
 
class  HashGenerator_test
 
class  HashIndexed_test
 
class  HashStandardToBoostBridge_test
 
class  HierarchyOrientationIndicator_test
 
class  Impl
 
class  Impl_XXX
 
class  Interface
 Target object to be instantiated as Singleton Allocates a variable amount of additional heap memory and prints diagnostic messages. More...
 
class  IterAdapter_test
 
class  IterAdapterSTL_test
 
class  IterCursor_test
 
class  IterExplorer_test
 
class  IterQueue_test
 
class  IterSource_test
 
class  IterStack_test
 
class  IterTools_test
 
class  LinkedElements_test
 
class  MaybeValue_test
 
struct  Mock_1
 Mock-1 to replace the Client Class... More...
 
struct  Mock_2
 Mock-2 to replace the Client Class... More...
 
class  MultiFact_test
 
class  MultiFactArgument_test
 
class  MultiFactSingleton_test
 
class  NullValue_test
 
class  OpaqueHolder_test
 
class  OpaqueUncheckedBuffer_test
 
class  OptionalRef_test
 
class  PolymorphicValue_test
 
class  QueryText_test
 
class  Receiver
 
class  RecollectingReceiver
 Statefull receiver of verb-tokens. More...
 
class  RefArray_test
 
class  S
 Custom-Datatype 1: uses std::hash extension point. More...
 
class  ScopedCollection_test
 
class  ScopedHolder_test
 
class  ScopedHolderTransfer_test
 
class  ScopedPtrVect_test
 
class  SearchPathSplitter_test
 
class  SimpleAllocator_test
 
class  Singleton_test
 
class  SingletonSubclass_test
 
class  SingletonTestMock_test
 
class  SubID_test
 
class  Symbol_test
 
class  SymbolHashtable_test
 
class  SyncClasslock_test
 
class  SyncLocking_test
 
class  SyncTimedwait_test
 
class  SyncWaiting_test
 
class  TargetObj
 Target object to be instantiated as Singleton Allocates a variable amount of additional heap memory and prints diagnostic messages. More...
 
struct  TestB
 
struct  TestDA
 
struct  TestDB
 
class  TestSingletonO
 Client Class normally to be instantiated as Singleton. More...
 
class  TestTargetObj
 Target object to be created by Test-Factories or as Singleton. More...
 
class  ThreadLocal_test
 
class  TimeBasics_test
 
class  TypedAllocationManager_test
 
class  TypedCounter_test
 
class  TypedFamilyMemberID_test
 
class  UniqueMallocOwner_test
 
class  Unrelated
 
class  V
 Custom-Datatype 2: uses boost::hash extension point. More...
 
class  Variant_test
 
class  VectorTransfer_test
 
class  VerbFunctionDispatch_test
 
class  VerboseRenderer
 a receiver of verb-tokens, which renders them verbosely More...
 
struct  X
 
struct  XX
 

Functions

template<class MAP >
MAP getTestMap_int (const uint NUM_ELMS)
 
template<class MUMAP >
MUMAP getTestMultiMap_int (const uint NUM_ELMS)
 
template<class VEC >
VEC getTestSeq_int (const uint NUM_ELMS)
 
 LAUNCHER (TypedFamilyMemberID_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (NullValue_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (CmdlineWrapper_test,"unit common")
 
 LAUNCHER (SearchPathSplitter_test,"unit common")
 
 LAUNCHER (SyncClasslock_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (QueryText_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (Singleton_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (IterStack_test,"unit common")
 
 LAUNCHER (UniqueMallocOwner_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (ThreadLocal_test,"function common")
 Register this test class... More...
 
 LAUNCHER (IterQueue_test,"unit common")
 
 LAUNCHER (MultiFactArgument_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (MultiFactSingleton_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (TypedAllocationManager_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (SyncTimedwait_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (SingletonSubclass_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (OptionalRef_test,"unit common")
 
 LAUNCHER (SingletonTestMock_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (VectorTransfer_test,"unit common")
 
 LAUNCHER (HashGenerator_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (HashIndexed_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (SymbolHashtable_test,"function common")
 
 LAUNCHER (SimpleAllocator_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (TimeBasics_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (OpaqueUncheckedBuffer_test,"unit common")
 
 LAUNCHER (MaybeValue_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (SyncWaiting_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (SubID_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (VerbFunctionDispatch_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (ScopedPtrVect_test,"unit common")
 
 LAUNCHER (SyncLocking_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (DiagnosticContext_test,"function common")
 Register this test class... More...
 
 LAUNCHER (HashStandardToBoostBridge_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (ScopedHolderTransfer_test,"unit common")
 
 LAUNCHER (AllocationCluster_test,"unit common")
 
 LAUNCHER (RefArray_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (Symbol_test,"unit common")
 
 LAUNCHER (IterAdapterSTL_test,"unit common")
 
 LAUNCHER (ScopedHolder_test,"unit common")
 
 LAUNCHER (CallQueue_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (DependencyFactory_test,"unit common")
 
 LAUNCHER (DelStash_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (Variant_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (IterCursor_test,"unit common")
 
 LAUNCHER (OpaqueHolder_test,"unit common")
 
 LAUNCHER (IterSource_test,"unit common")
 
 LAUNCHER (PolymorphicValue_test,"unit common")
 
 LAUNCHER (MultiFact_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (CustomSharedPtr_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (IterTools_test,"unit common")
 
 LAUNCHER (TypedCounter_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (HierarchyOrientationIndicator_test,"unit common")
 Register this test class... More...
 
 LAUNCHER (LinkedElements_test,"unit common")
 
 LAUNCHER (IterAdapter_test,"unit common")
 
 LAUNCHER (ScopedCollection_test,"unit common")
 
 LAUNCHER (IterExplorer_test,"unit common")
 
template<class ITER >
void pullOut (ITER const &i)
 
string randStr (size_t len)
 create garbage string of given length More...
 
lib::time::Time randTime ()
 create a random but not insane Time value More...
 
template<typename R >
string showRefKind ()
 helper to discern the kind of reference of the argument type More...
 
string showSizeof (size_t siz, string name)
 for printing sizeof(). More...
 
template<typename T >
string showSizeof (T const *obj=0, const char *name=0)
 for printing sizeof(), possibly figuring out the type name automatically More...
 
template<typename T >
meta::disable_if
< std::is_pointer< T >, string > 
showSizeof (T const &obj, const char *name=0)
 
template<typename T >
string showSizeof (const char *name)
 
template<typename... EMPTY>
string showVariadicTypes ()
 helper for investigating a variadic argument pack More...
 
template<typename X , typename... XS>
string showVariadicTypes (X const &x, XS const &...xs)
 

Typedef Documentation

typedef std::vector< uint > VecI

Definition at line 43 of file test-coll.hpp.

typedef std::map<int,int> MapII

Definition at line 57 of file test-coll.hpp.

typedef std::multimap<int,int> MMapII

Definition at line 58 of file test-coll.hpp.

typedef std::unordered_map<int,int> HMapII

Definition at line 60 of file test-coll.hpp.

typedef std::unordered_multimap<int,int> HMMapII

Definition at line 61 of file test-coll.hpp.

typedef DiagnosticContext<uint> Marker

Subject of this test: a thread-local stack of int values.

Definition at line 67 of file diagnostic-context-test.cpp.

Base class to mix in the hash ID facility.

actual configuration of the mixin

Definition at line 48 of file hash-indexed-test.cpp.

typedef IterStack<int> IStack

Definition at line 47 of file iter-stack-test.cpp.

typedef LinkedElements<Nummy> List

default case: ownership for heap allocated nodes

Definition at line 168 of file linked-elements-test.cpp.

managing existing node elements without taking ownership

Definition at line 171 of file linked-elements-test.cpp.

typedef LinkedElements<Nummy, linked_elements::UseAllocationCluster> ListCustomAllocated

creating nodes in-place, using a custom allocator for creation and disposal

Definition at line 174 of file linked-elements-test.cpp.

typedef OpaqueHolder<Base> Opaque

Definition at line 105 of file opaque-holder-test.cpp.

typedef std::vector< PolyVal > TestList

Definition at line 106 of file opaque-holder-test.cpp.

typedef PolymorphicValue<Interface, MAX_SIZ> PolyVal

Definition at line 160 of file polymorphic-value-test.cpp.

typedef ScopedCollection<Dummy, sizeof(SubDummy)> CollD

Definition at line 96 of file scoped-collection-test.cpp.

Definition at line 52 of file scoped-holder-test.cpp.

Definition at line 53 of file scoped-holder-test.cpp.

Definition at line 45 of file scoped-ptrvect-test.cpp.

typedef std::unordered_map< Symbol, string, hash<Symbol> > HTable

Definition at line 61 of file symbol-hashtable-test.cpp.

typedef Variant<Types<bool,int,string,Time> > TestVariant

Definition at line 57 of file variant-test.cpp.


Class Documentation

class lib::test::Unrelated
+ Collaboration diagram for Unrelated:

Function Documentation

VEC lib::test::getTestSeq_int ( const uint  NUM_ELMS)
inline

Definition at line 47 of file test-coll.hpp.

MAP lib::test::getTestMap_int ( const uint  NUM_ELMS)
inline

Definition at line 66 of file test-coll.hpp.

MUMAP lib::test::getTestMultiMap_int ( const uint  NUM_ELMS)
inline

Definition at line 77 of file test-coll.hpp.

void lib::test::pullOut ( ITER const &  i)
inline

Definition at line 91 of file test-coll.hpp.

Referenced by ScopeQuery_test::discover(), ScopeQuery_test::run(), IterExplorer_test::verifyChainedIterators(), and IterExplorer_test::verifyStateAdapter().

+ Here is the caller graph for this function:

string showSizeof ( size_t  siz,
string  name 
)

for printing sizeof().

prints the given size and name literally, without any further magic

Definition at line 48 of file test-helper.cpp.

Referenced by TupleHelper_test::check_tuple_from_Typelist(), MObjectRef_test::checkBuildMObjectRef(), Symbol_test::checkLiteral(), TestHelper_test::checkTypeDisplay(), QueryResolver_test::explore(), PlacementHierarchy_test::run(), MultiFactArgument_test::run(), ArgumentTupleAccept_test::run(), MultiFactSingleton_test::run(), showSizeof(), AllocationCluster_test::simpleUsage(), CommandArgument_test::simulateCmdLifecycle(), and ItemWrapper_test::verifyWrapper().

+ Here is the caller graph for this function:

string randStr ( size_t  len)

create garbage string of given length

Todo:
probably this can be done in a more clever way. Anyone...?
Returns
string containing arbitrary lower case letters and numbers

Definition at line 61 of file test-helper.cpp.

Referenced by Variant_test::accessVariant(), EntryID_test::checkBasicProperties(), TestHelper_test::checkGarbageStr(), SymbolHashtable_test::checkHashFunction(), HashStandardToBoostBridge_test::checkHashtableUsage(), BusTerm_test::commandInvocation(), TimeGridBasics_test::createGrid_fullProcedure(), OptionalRef_test::run(), UniqueMallocOwner_test::run(), ReplaceableItem_test::run(), ItemWrapper_test::run(), IterSource_test::verify_MapWrappers(), and BufferMetadata_test::verifyStandardCase().

+ Here is the caller graph for this function:

string lib::test::showSizeof ( T const *  obj = 0,
const char *  name = 0 
)
inline

for printing sizeof(), possibly figuring out the type name automatically

Parameters
namewhen given, this name will be used for display, instead of auto detecting the type

Definition at line 76 of file test-helper.hpp.

References showSizeof(), and lib::meta::typeStr().

+ Here is the call graph for this function:

meta::disable_if<std::is_pointer<T>, string > lib::test::showSizeof ( T const &  obj,
const char *  name = 0 
)
inline

Definition at line 85 of file test-helper.hpp.

References showSizeof().

+ Here is the call graph for this function:

string lib::test::showSizeof ( const char *  name)
inline

Definition at line 92 of file test-helper.hpp.

string lib::test::showRefKind ( )

helper to discern the kind of reference of the argument type

Definition at line 102 of file test-helper.hpp.

string lib::test::showVariadicTypes ( )
inline

helper for investigating a variadic argument pack

Warning
always spell out the template arguments explicitly when invoking this diagnostics, e.g. showVariadicTypes<ARGS...>(args...) otherwise the template argument matching for functions might mess up the kind of reference you'll see in the diagnostics.
See also
test-helper-variadic-test.cpp

Definition at line 118 of file test-helper.hpp.

Referenced by TestHelperVariadic_test::forwardFunction(), TestHelperVariadic_test::run(), and showVariadicTypes().

+ Here is the caller graph for this function:

string lib::test::showVariadicTypes ( X const &  x,
XS const &...  xs 
)
inline

Definition at line 125 of file test-helper.hpp.

References showVariadicTypes(), and lib::meta::typeStr().

+ Here is the call graph for this function:

lib::time::Time lib::test::randTime ( )
inline

create a random but not insane Time value

Definition at line 142 of file test-helper.hpp.

Referenced by Variant_test::accessVariant(), DummyJob::build(), BusTerm_test::commandInvocation(), CommandArgument_test::createTuples(), GenNodeBasic_test::equalityMatch(), CommandMessageBinding_test::run(), ReplaceableItem_test::run(), ArgumentTupleAccept_test::run(), CommandArgument_test::simulateCmdLifecycle(), and IterSource_test::verify_MapWrappers().

+ Here is the caller graph for this function:

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

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( ThreadLocal_test  ,
"function common"   
)

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( DiagnosticContext_test  ,
"function common"   
)

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( AllocationCluster_test  ,
"unit common"   
)
lib::test::LAUNCHER ( CmdlineWrapper_test  ,
"unit common"   
)
lib::test::LAUNCHER ( CustomSharedPtr_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( DependencyFactory_test  ,
"unit common"   
)
lib::test::LAUNCHER ( HashGenerator_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( IterAdapterSTL_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterAdapter_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterCursor_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterExplorer_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterQueue_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterSource_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterStack_test  ,
"unit common"   
)
lib::test::LAUNCHER ( IterTools_test  ,
"unit common"   
)
lib::test::LAUNCHER ( LinkedElements_test  ,
"unit common"   
)
lib::test::LAUNCHER ( MaybeValue_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( OpaqueHolder_test  ,
"unit common"   
)
lib::test::LAUNCHER ( OpaqueUncheckedBuffer_test  ,
"unit common"   
)
lib::test::LAUNCHER ( OptionalRef_test  ,
"unit common"   
)
lib::test::LAUNCHER ( PolymorphicValue_test  ,
"unit common"   
)
lib::test::LAUNCHER ( QueryText_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( ScopedCollection_test  ,
"unit common"   
)
lib::test::LAUNCHER ( ScopedHolder_test  ,
"unit common"   
)
lib::test::LAUNCHER ( ScopedHolderTransfer_test  ,
"unit common"   
)
lib::test::LAUNCHER ( ScopedPtrVect_test  ,
"unit common"   
)
lib::test::LAUNCHER ( SearchPathSplitter_test  ,
"unit common"   
)
lib::test::LAUNCHER ( SimpleAllocator_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( SymbolHashtable_test  ,
"function common"   
)
lib::test::LAUNCHER ( Symbol_test  ,
"unit common"   
)
lib::test::LAUNCHER ( TypedAllocationManager_test  ,
"unit common"   
)

Register this test class...

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

Register this test class...

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

Register this test class...

lib::test::LAUNCHER ( VectorTransfer_test  ,
"unit common"   
)
lib::test::LAUNCHER ( VerbFunctionDispatch_test  ,
"unit common"   
)

Register this test class...