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

Method DeathTestImpl

tests/gtest/gtest-all.cc:7996–8003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7994class DeathTestImpl : public DeathTest {
7995 protected:
7996 DeathTestImpl(const char* a_statement, Matcher<const std::string&> matcher)
7997 : statement_(a_statement),
7998 matcher_(std::move(matcher)),
7999 spawned_(false),
8000 status_(-1),
8001 outcome_(IN_PROGRESS),
8002 read_fd_(-1),
8003 write_fd_(-1) {}
8004
8005 // read_fd_ is expected to be closed and cleared by a derived class.
8006 ~DeathTestImpl() override { GTEST_DEATH_TEST_CHECK_(read_fd_ == -1); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected