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

Method ~ScopedFakeTestPartResultReporter

tests/gtest/gtest-all.cc:2101–2108  ·  view source on GitHub ↗

The d'tor restores the test part result reporter used by Google Test before.

Source from the content-addressed store, hash-verified

2099// The d'tor restores the test part result reporter used by Google Test
2100// before.
2101ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter() {
2102 internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
2103 if (intercept_mode_ == INTERCEPT_ALL_THREADS) {
2104 impl->SetGlobalTestPartResultReporter(old_reporter_);
2105 } else {
2106 impl->SetTestPartResultReporterForCurrentThread(old_reporter_);
2107 }
2108}
2109
2110// Increments the test part result count and remembers the result.
2111// This method is from the TestPartResultReporterInterface interface.

Callers

nothing calls this directly

Tested by

no test coverage detected