Death test constructor. Increments the running death test count for the current test.
| 7261 | // Death test constructor. Increments the running death test count |
| 7262 | // for the current test. |
| 7263 | DeathTest::DeathTest() { |
| 7264 | TestInfo* const info = GetUnitTestImpl()->current_test_info(); |
| 7265 | if (info == NULL) { |
| 7266 | DeathTestAbort("Cannot run a death test outside of a TEST or " |
| 7267 | "TEST_F construct"); |
| 7268 | } |
| 7269 | } |
| 7270 | |
| 7271 | // Creates and returns a death test by dispatching to the current |
| 7272 | // death test factory. |
nothing calls this directly
no test coverage detected