Death test constructor. Increments the running death test count for the current test.
| 7964 | // Death test constructor. Increments the running death test count |
| 7965 | // for the current test. |
| 7966 | DeathTest::DeathTest() { |
| 7967 | TestInfo* const info = GetUnitTestImpl()->current_test_info(); |
| 7968 | if (info == nullptr) { |
| 7969 | DeathTestAbort("Cannot run a death test outside of a TEST or " |
| 7970 | "TEST_F construct"); |
| 7971 | } |
| 7972 | } |
| 7973 | |
| 7974 | // Creates and returns a death test by dispatching to the current |
| 7975 | // death test factory. |
nothing calls this directly
no test coverage detected