Inheritance diagram for Utils::CalitkoMocks::Testing::BoundFunctionTest:


We have performed the following tests:
Definition at line 75 of file BoundFunctionTest.cpp.
Public Member Functions | |
| void | VoidVoid () |
| void | testVoidVoid () |
| Test binding a void() function. | |
| int | IntVoid () |
| void | testIntVoid () |
| Test binding an int () function. | |
| void | testIntVoidReturnIncorrect () |
| Test that if return value doesn't match, an exception is thrown. | |
| void | testIntVoidReturnNotSet () |
| Test that if willReturn() is not called, an exception is thrown. | |
| void | testIntVoidReturnNotSetWithContext () |
| Test that if willReturn() is not called, an exception is thrown. | |
| int | IntInt (int a) |
| void | testIntInt () |
| Test binding an int (int) function. | |
| bool & | BoolRefIntRefConstIntRef (int &a, const int &b) |
| void | testBoolRefIntRefConstIntRef () |
| Test binding an int & (int &, const int &) function. | |
| int | IntIntWithExpectations (int) |
| void | testIntIntWithExpectationsOk () |
| Verify that bound function with correctly checked expectations works. | |
| void | testIntIntWithExpectationsBadCheckFail () |
| Verify that bound function with incorrectly checked expectations fails. | |
| void | testIntIntWithExpectationsNotCheckedFail () |
| Verify that bound function with incorrectly checked expectations fails. | |
| void | VoidIntWithExpectations (int v) |
| void | testVoidIntWithExpectationsNotCheckedFail () |
| Verify that bound function with incorrectly checked expectations fails. | |
| void | testVoidIntFailSetOwnContextIfNotSet () |
| Upon failure, set own context if not set by the thrower. | |
Public Attributes | |
| bool | VoidVoidOk |
| bool | IntVoidOk |
| bool | IntIntOk |
| bool | BoolRefIntRefConstIntRefOk |
| auto_ptr< ExpectedFunction< void(int)> > | IntIntExpectation1 |
| auto_ptr< ExpectedFunction< void(int)> > | IntIntExpectation2 |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (BoundFunctionTest) | |
| CPPUNIT_TEST (testVoidVoid) | |
| CPPUNIT_TEST (testIntVoid) | |
| CPPUNIT_TEST (testIntVoidReturnIncorrect) | |
| CPPUNIT_TEST (testIntVoidReturnNotSet) | |
| CPPUNIT_TEST (testIntVoidReturnNotSetWithContext) | |
| CPPUNIT_TEST (testIntInt) | |
| CPPUNIT_TEST (testBoolRefIntRefConstIntRef) | |
| CPPUNIT_TEST (testIntIntWithExpectationsOk) | |
| CPPUNIT_TEST (testIntIntWithExpectationsBadCheckFail) | |
| CPPUNIT_TEST (testIntIntWithExpectationsNotCheckedFail) | |
| CPPUNIT_TEST (testVoidIntWithExpectationsNotCheckedFail) | |
| CPPUNIT_TEST (testVoidIntFailSetOwnContextIfNotSet) | |
| CPPUNIT_TEST_SUITE_END () | |
|
||||||||||||
|
Definition at line 174 of file BoundFunctionTest.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 164 of file BoundFunctionTest.cpp. |
|
|
Definition at line 190 of file BoundFunctionTest.cpp. |
|
|
Definition at line 104 of file BoundFunctionTest.cpp. |
|
|
Test binding an int & (int &, const int &) function.
Definition at line 178 of file BoundFunctionTest.cpp. |
|
|
Test binding an int (int) function.
Definition at line 166 of file BoundFunctionTest.cpp. |
|
|
Verify that bound function with incorrectly checked expectations fails.
Definition at line 213 of file BoundFunctionTest.cpp. |
|
|
Verify that bound function with incorrectly checked expectations fails.
Definition at line 236 of file BoundFunctionTest.cpp. |
|
|
Verify that bound function with correctly checked expectations works.
Definition at line 198 of file BoundFunctionTest.cpp. |
|
|
Test binding an int () function.
Definition at line 106 of file BoundFunctionTest.cpp. |
|
|
Test that if return value doesn't match, an exception is thrown.
Definition at line 114 of file BoundFunctionTest.cpp. |
|
|
Test that if willReturn() is not called, an exception is thrown.
Definition at line 130 of file BoundFunctionTest.cpp. |
|
|
Test that if willReturn() is not called, an exception is thrown.
Definition at line 146 of file BoundFunctionTest.cpp. |
|
|
Upon failure, set own context if not set by the thrower. An expectation or a nested bound function may fail and would thus throw an exception without a context being set. In such cases we should set retrow with the original message and our context set. Definition at line 295 of file BoundFunctionTest.cpp. |
|
|
Verify that bound function with incorrectly checked expectations fails.
Definition at line 266 of file BoundFunctionTest.cpp. |
|
|
Test binding a void() function.
Definition at line 96 of file BoundFunctionTest.cpp. |
|
|
Definition at line 260 of file BoundFunctionTest.cpp. |
|
|
Definition at line 94 of file BoundFunctionTest.cpp. |
|
|
Definition at line 173 of file BoundFunctionTest.cpp. |
|
|
Definition at line 187 of file BoundFunctionTest.cpp. |
|
|
Definition at line 188 of file BoundFunctionTest.cpp. |
|
|
Definition at line 163 of file BoundFunctionTest.cpp. |
|
|
Definition at line 103 of file BoundFunctionTest.cpp. |
|
|
Definition at line 93 of file BoundFunctionTest.cpp. |