Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ddc618ab
Unverified
Commit
ddc618ab
authored
Aug 20, 2018
by
Vadim Kotov
Committed by
GitHub
Aug 20, 2018
Browse files
docs: fix more broken links to sections in Advanced guide
parent
02c4f1af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googletest/docs/advanced.md
googletest/docs/advanced.md
+3
-3
No files found.
googletest/docs/advanced.md
View file @
ddc618ab
...
...
@@ -1147,7 +1147,7 @@ test has at least one failure of either kind.
In your test code, you can call
`RecordProperty("key", value)`
to log additional
information, where
`value`
can be either a string or an
`int`
. The
*last*
value
recorded for a key will be emitted to the
[
XML output
](
#
XmlR
eport
)
if you
recorded for a key will be emitted to the
[
XML output
](
#
generating-an-xml-r
eport
)
if you
specify one. For example, the test
```
c++
...
...
@@ -1424,7 +1424,7 @@ will have these names:
*
`InstantiationName/FooTest.HasBlahBlah/1`
for
`"miny"`
*
`InstantiationName/FooTest.HasBlahBlah/2`
for
`"moe"`
You can use these names in
[
`--gtest_filter`
](
#
TestFilter
)
.
You can use these names in
[
`--gtest_filter`
](
#
running-a-subset-of-the-tests
)
.
This statement will instantiate all tests from
`FooTest`
again, each with
parameter values
`"cat"`
and
`"dog"`
:
...
...
@@ -1674,7 +1674,7 @@ To test them, we use the following special techniques:
*
Both static functions and definitions/declarations in an unnamed namespace
are only visible within the same translation unit. To test them, you can
`#include`
the entire
`.cc`
file being tested in your
`*_test.cc`
file.
(
#
including
`.cc`
files is not a good way to reuse code - you should not do
(including
`.cc`
files is not a good way to reuse code - you should not do
this in production code!)
However, a better approach is to move the private code into the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment