MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / DeathTest

Method DeathTest

tests/gtest/gtest-all.cc:7966–7972  ·  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

7964// Death test constructor. Increments the running death test count
7965// for the current test.
7966DeathTest::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.

Callers

nothing calls this directly

Calls 2

GetUnitTestImplFunction · 0.85
DeathTestAbortFunction · 0.85

Tested by

no test coverage detected