MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / GetTestTypeId

Function GetTestTypeId

3rd/googletest-1.13.0/googletest/src/gtest.cc:944–944  ·  view source on GitHub ↗

Returns the type ID of ::testing::Test. We should always call this instead of GetTypeId< ::testing::Test>() to get the type ID of testing::Test. This is to work around a suspected linker bug when using Google Test as a framework on Mac OS X. The bug causes GetTypeId< ::testing::Test>() to return different values depending on whether the call is from the Google Test framework itself or from user

Source from the content-addressed store, hash-verified

942// return the same value, as it always calls GetTypeId<>() from the
943// gtest.cc, which is within the Google Test framework.
944TypeId GetTestTypeId() { return GetTypeId<Test>(); }
945
946// The value of GetTestTypeId() as seen from within the Google Test
947// library. This is solely for testing GetTestTypeId().

Callers 3

TESTFunction · 0.85
gtest.ccFile · 0.85
HasSameFixtureClassMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected