MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / DeathTest

Method DeathTest

test/common/gtest/gtest.cpp:7263–7269  ·  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

7261// Death test constructor. Increments the running death test count
7262// for the current test.
7263DeathTest::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.

Callers

nothing calls this directly

Calls 2

GetUnitTestImplFunction · 0.85
DeathTestAbortFunction · 0.85

Tested by

no test coverage detected