MCPcopy Create free account
hub / github.com/cpputest/cpputest / setup

Method setup

include/CppUTestExt/GTestConvertor.h:273–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 void setup()
274 {
275 flags_->resetValuesOfGTestFlags();
276
277 #ifdef GTEST_VERSION_GTEST_1_5
278 test_ = testinfo_->impl()->factory_->CreateTest();
279 #else
280 test_ = testinfo_->factory_->CreateTest();
281 #endif
282
283 ::testing::UnitTest::GetInstance()->impl()->set_current_test_info(testinfo_);
284 try {
285 test_->SetUp();
286 }
287 catch (CppUTestFailedException& ex)
288 {
289 }
290 }
291
292 void teardown()
293 {

Callers

nothing calls this directly

Calls 2

SetUpMethod · 0.80

Tested by

no test coverage detected