-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to #include, namespaces not obvious from the documentation #4604
What to #include, namespaces not obvious from the documentation #4604
Comments
Dear Dave, It seems it has already been fixed. If I check the reference link from your comment, I see the following in the last paragraph of the main section (just above the
Could you please confirm that? |
That covers the namespace but not what to |
Yeah, that makes sense. I created a PR. Let's see if it gets merged. Feel free to review it too. |
From your comment:
I figured that the guides are fine, because they are teaching how to use the tool, not sure that information belongs there. Also the code snippets do mention the namespace one way or another. I believe the most critical part are the references, that is why I checked testing, mocking, assertions, matchers and actions. |
The code snippets I saw do not mention the namespace nor do they have |
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?
ff233bd
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
The text was updated successfully, but these errors were encountered: