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

Function ParseGoogleTestFlagsOnly

tests/gtest/gtest-all.cc:7476–7489  ·  view source on GitHub ↗

Parses the command line for Google Test flags, without initializing other parts of Google Test.

Source from the content-addressed store, hash-verified

7474// Parses the command line for Google Test flags, without initializing
7475// other parts of Google Test.
7476void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
7477 ParseGoogleTestFlagsOnlyImpl(argc, argv);
7478
7479 // Fix the value of *_NSGetArgc() on macOS, but iff
7480 // *_NSGetArgv() == argv
7481 // Only applicable to char** version of argv
7482#if GTEST_OS_MAC
7483#ifndef GTEST_OS_IOS
7484 if (*_NSGetArgv() == argv) {
7485 *_NSGetArgc() = *argc;
7486 }
7487#endif
7488#endif
7489}
7490void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
7491 ParseGoogleTestFlagsOnlyImpl(argc, argv);
7492}

Callers 1

InitGoogleTestImplFunction · 0.85

Calls 1

Tested by

no test coverage detected