Death test constructor. Increments the running death test count for the current test.
| 6489 | // Death test constructor. Increments the running death test count |
| 6490 | // for the current test. |
| 6491 | DeathTest::DeathTest() { |
| 6492 | TestInfo* const info = GetUnitTestImpl()->current_test_info(); |
| 6493 | if (info == NULL) { |
| 6494 | DeathTestAbort("Cannot run a death test outside of a TEST or " |
| 6495 | "TEST_F construct"); |
| 6496 | } |
| 6497 | } |
| 6498 | |
| 6499 | // Creates and returns a death test by dispatching to the current |
| 6500 | // death test factory. |
nothing calls this directly
no test coverage detected