Set Up

Full text search for "SetUp"


Display context of search results
Case-sensitive searching
  • C++/GoogleTest(gtest) SetUp TearDown 계층 구조 . . . . 14 matches
         #title C++/GoogleTest(gtest) SetUp TearDown 계층 구조
         GoogleTest에는 3가지 레벨의 SetUp/TearDown이 있다.
          void SetUp() override { /* 전체 프로세스에서 1번 */ }
          static void SetUpTestSuite() { /* 해당 Fixture의 첫 테스트 전 1번 */ }
          void SetUp() override { /* 매 TEST_F 실행 전 */ }
         Environment::SetUp() ← 1번 (프로세스)
          SetUpTestSuite() ← 1번 (Fixture A)
          SetUp() ← 매번 (Test A-1)
          SetUp() ← 매번 (Test A-2)
          SetUpTestSuite() ← 1번 (Fixture B)
          SetUp() ← 매번 (Test B-1)
         * constructor/destructor 대신 SetUp/TearDown 계층 구조 패턴을 쓰는 이유
         constructor vs. SetUp
         실패 가능성이 있는 초기화 → SetUp (이유: 예외 안전성)
  • C++ . . . . 1 match
         ["/GoogleTest(gtest) SetUp TearDown 계층 구조"]
Found 2 matching pages out of 1232 total pages (0 pages are searched)

You can also click here to search title.