49 , msg_(
"%s::doIt() call=%d\n")
51 TRACE (
test,
"ctor %s", typid_.c());
57 TRACE (
test,
"dtor %s", typid_.c());
63 cout << msg_ % typid_ % callCnt_;
125 CHECK (sing().getCnt() == 2);
135 CHECK (sing().getCnt() == 5);
142 instanceID =
rani(10);
144 CHECK (sing().getCnt() == 1);
147 CHECK (instanceID == mock_2->id);
151 CHECK (sing().getCnt() == 2);
153 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.
int rani(uint bound=_iBOUND())
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.
Simplistic 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.