| 7375 | // same type argument is guaranteed to return the same ID. |
| 7376 | template <typename T> |
| 7377 | TypeId GetTypeId() { |
| 7378 | // The compiler is required to allocate a different |
| 7379 | // TypeIdHelper<T>::dummy_ variable for each T used to instantiate |
| 7380 | // the template. Therefore, the address of dummy_ is guaranteed to |
| 7381 | // be unique. |
| 7382 | return &(TypeIdHelper<T>::dummy_); |
| 7383 | } |
| 7384 | |
| 7385 | // Returns the type ID of ::testing::Test. Always call this instead |
| 7386 | // of GetTypeId< ::testing::Test>() to get the type ID of |
nothing calls this directly
no outgoing calls
no test coverage detected