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

Method Init

tests/gtest/gtest-all.cc:2088–2097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2086}
2087
2088void ScopedFakeTestPartResultReporter::Init() {
2089 internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
2090 if (intercept_mode_ == INTERCEPT_ALL_THREADS) {
2091 old_reporter_ = impl->GetGlobalTestPartResultReporter();
2092 impl->SetGlobalTestPartResultReporter(this);
2093 } else {
2094 old_reporter_ = impl->GetTestPartResultReporterForCurrentThread();
2095 impl->SetTestPartResultReporterForCurrentThread(this);
2096 }
2097}
2098
2099// The d'tor restores the test part result reporter used by Google Test
2100// before.

Callers

nothing calls this directly

Tested by

no test coverage detected