58 , msg_(
"%s::doIt() call=%d\n")
60 TRACE (
test,
"ctor %s", typid_.c());
66 TRACE (
test,
"dtor %s", typid_.c());
72 cout << msg_ % typid_ % callCnt_;
134 CHECK (sing().getCnt() == 2);
144 CHECK (sing().getCnt() == 5);
151 instanceID = rand() % 10;
153 CHECK (sing().getCnt() == 1);
156 CHECK (instanceID == mock_2->id);
160 CHECK (sing().getCnt() == 2);
162 CHECK (sing().getCnt() == 3);
inline string literal This is a marker type to indicate that
Per type specific configuration of instances created as service dependencies.
Client Class normally to be instantiated as Singleton.
A front-end for using printf-style formatting.
Access point to singletons and other kinds of dependencies designated by type.
Implementation namespace for support and library code.
Token or Atom with distinct identity.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Mock-1 to replace the Client Class...
Mock-2 to replace the Client Class...
Configuration handle for temporarily shadowing a dependency by a test mock instance.