MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / DeathTest

Method DeathTest

rtpose_wrapper/src/gtest/gtest-all.cpp:6491–6497  ·  view source on GitHub ↗

Death test constructor. Increments the running death test count for the current test.

Source from the content-addressed store, hash-verified

6489// Death test constructor. Increments the running death test count
6490// for the current test.
6491DeathTest::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.

Callers

nothing calls this directly

Calls 3

GetUnitTestImplFunction · 0.85
DeathTestAbortFunction · 0.85
current_test_infoMethod · 0.80

Tested by

no test coverage detected