Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TestSingO Class Reference

Description

Client Class normally to be instantiated as Singleton.

But for tests, this class should be replaced by a Mock....

Definition at line 39 of file singleton-testmock-test.cpp.

Public Member Functions

 TestSingO (Symbol ty="TestSingO")
 
virtual ~TestSingO ()
 
void doIt ()
 
int getCnt ()
 

Private Attributes

int callCnt_
 
Symbol typid_
 
_Fmt msg_
 

Constructor & Destructor Documentation

◆ TestSingO()

TestSingO ( Symbol  ty = "TestSingO")
inline

Definition at line 46 of file singleton-testmock-test.cpp.

References Literal::c(), and TestSingO::typid_.

+ Here is the call graph for this function:

◆ ~TestSingO()

virtual ~TestSingO ( )
inlinevirtual

Definition at line 55 of file singleton-testmock-test.cpp.

References Literal::c(), and TestSingO::typid_.

+ Here is the call graph for this function:

Member Function Documentation

◆ doIt()

void doIt ( )
inline

◆ getCnt()

int getCnt ( )
inline

Definition at line 66 of file singleton-testmock-test.cpp.

References TestSingO::callCnt_.

Member Data Documentation

◆ callCnt_

int callCnt_
private

Definition at line 41 of file singleton-testmock-test.cpp.

Referenced by TestSingO::doIt(), and TestSingO::getCnt().

◆ typid_

Symbol typid_
private

◆ msg_

_Fmt msg_
private

Definition at line 43 of file singleton-testmock-test.cpp.

Referenced by TestSingO::doIt().

+ Inheritance diagram for TestSingO:
+ Collaboration diagram for TestSingO:

The documentation for this class was generated from the following file: