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

Function InitGoogleTest

tests/gtest/gtest-all.cc:7529–7535  ·  view source on GitHub ↗

Initializes Google Test. This must be called before calling RUN_ALL_TESTS(). In particular, it parses a command line for the flags that Google Test recognizes. Whenever a Google Test flag is seen, it is removed from argv, and *argc is decremented. No value is returned. Instead, the Google Test flag variables are updated. Calling the function for the second time has no user-visible effect.

Source from the content-addressed store, hash-verified

7527//
7528// Calling the function for the second time has no user-visible effect.
7529void InitGoogleTest(int* argc, char** argv) {
7530#if defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_)
7531 GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_(argc, argv);
7532#else // defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_)
7533 internal::InitGoogleTestImpl(argc, argv);
7534#endif // defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_)
7535}
7536
7537// This overloaded version can be used in Windows programs compiled in
7538// UNICODE mode.

Callers 1

mainFunction · 0.85

Calls 1

InitGoogleTestImplFunction · 0.85

Tested by

no test coverage detected