Called to test a boolean condition. This method should not be called directly in your test but you should call test() instead (macro)
| 44 | // Called to test a boolean condition. |
| 45 | // This method should not be called directly in your test but you should call test() instead (macro) |
| 46 | void Test::applyTest(bool condition, const std::string& testText, |
| 47 | const char* filename, long lineNumber) { |
| 48 | |
| 49 | // If the boolean condition is true |
| 50 | if (condition) { |
| 51 | |
| 52 | // The test passed, call the succeed() method |
| 53 | succeed(); |
| 54 | } |
| 55 | else { // If the boolean condition is false |
| 56 | |
| 57 | // The test failed, call the applyFail() method |
| 58 | applyFail(testText, filename, lineNumber); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Called when a test has failed. |
| 63 | // This method should not be called directly in your test buy you should call fail() instead (macro) |
nothing calls this directly
no outgoing calls
no test coverage detected