MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / InitGoogleTestImpl

Function InitGoogleTestImpl

test/common/gtest/gtest.cpp:6887–6908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6885// wchar_t.
6886template <typename CharType>
6887void InitGoogleTestImpl(int* argc, CharType** argv) {
6888 g_init_gtest_count++;
6889
6890 // We don't want to run the initialization code twice.
6891 if (g_init_gtest_count != 1) return;
6892
6893 if (*argc <= 0) return;
6894
6895 internal::g_executable_path = internal::StreamableToString(argv[0]);
6896
6897#if GTEST_HAS_DEATH_TEST
6898
6899 g_argvs.clear();
6900 for (int i = 0; i != *argc; i++) {
6901 g_argvs.push_back(StreamableToString(argv[i]));
6902 }
6903
6904#endif // GTEST_HAS_DEATH_TEST
6905
6906 ParseGoogleTestFlagsOnly(argc, argv);
6907 GetUnitTestImpl()->PostFlagParsingInit();
6908}
6909
6910} // namespace internal
6911

Callers 1

InitGoogleTestFunction · 0.85

Calls 6

StreamableToStringFunction · 0.85
ParseGoogleTestFlagsOnlyFunction · 0.85
GetUnitTestImplFunction · 0.85
push_backMethod · 0.80
PostFlagParsingInitMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected