diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-07-28 18:16:39 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-07-28 18:27:27 -0400 |
commit | b66e993f1c742518d9b5e93b0d8a5f8255a4127c (patch) | |
tree | 55e6fed05333d2d37f34586726a342ed7f7dbc29 /src/mongo/util/startup_test.h | |
parent | 314a22e93f283ab80e650618cbd3ed8babb8510f (diff) | |
download | mongo-b66e993f1c742518d9b5e93b0d8a5f8255a4127c.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/util/startup_test.h')
-rw-r--r-- | src/mongo/util/startup_test.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/src/mongo/util/startup_test.h b/src/mongo/util/startup_test.h index 6585ac5eee3..fd1b220e1d9 100644 --- a/src/mongo/util/startup_test.h +++ b/src/mongo/util/startup_test.h @@ -33,36 +33,37 @@ namespace mongo { - /* The idea here is to let all initialization of global variables (classes inheriting from StartupTest) - complete before we run the tests -- otherwise order of initilization being arbitrary may mess - us up. The app's main() function should call runTests(). +/* The idea here is to let all initialization of global variables (classes inheriting from StartupTest) + complete before we run the tests -- otherwise order of initilization being arbitrary may mess + us up. The app's main() function should call runTests(). - To define a unit test, inherit from this and implement run. instantiate one object for the new class - as a global. + To define a unit test, inherit from this and implement run. instantiate one object for the new class + as a global. - These tests are ran on *every* startup of mongod, so they have to be very lightweight. But it is a - good quick check for a bad build. - */ - class StartupTest { - public: - static void runTests(); + These tests are ran on *every* startup of mongod, so they have to be very lightweight. But it is a + good quick check for a bad build. +*/ +class StartupTest { +public: + static void runTests(); - static bool testsInProgress() { return running; } + static bool testsInProgress() { + return running; + } - protected: - StartupTest(); - virtual ~StartupTest(); +protected: + StartupTest(); + virtual ~StartupTest(); - private: - static std::vector<StartupTest*> *tests; - static bool running; +private: + static std::vector<StartupTest*>* tests; + static bool running; - static void registerTest(StartupTest *t); + static void registerTest(StartupTest* t); - // assert if fails - virtual void run() = 0; + // assert if fails + virtual void run() = 0; +}; - }; - -} // namespace mongo +} // namespace mongo |