googletest
googletest copied to clipboard
What to #include, namespaces not obvious from the documentation
trafficstars
Describe the issue
For example, on this page I see uses of HasSubstring but nothing on that page tells me what namespace it comes from.
On this page I see
using ::testing::HasSubstr;
in examples, but #include <gtest/gtest.h> is insufficient to find that, and nothing on the page tells me what the right #include is.
Steps to reproduce the problem
Read the docs
What version of GoogleTest are you using?
ff233bdd4cac0a0bf6e5cd45bda3406814cb2796
What operating system and version are you using?
macOS 14.6.1
What compiler and version are you using?
gcc-14
What build system are you using?
CMake 29.3
Additional context
No response