Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
ddc618ab
Unverified
Commit
ddc618ab
authored
Aug 20, 2018
by
Vadim Kotov
Committed by
GitHub
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fix more broken links to sections in Advanced guide
parent
02c4f1af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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.
...
@@ -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
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
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
specify one. For example, the test
```
c++
```
c++
...
@@ -1424,7 +1424,7 @@ will have these names:
...
@@ -1424,7 +1424,7 @@ will have these names:
*
`InstantiationName/FooTest.HasBlahBlah/1`
for
`"miny"`
*
`InstantiationName/FooTest.HasBlahBlah/1`
for
`"miny"`
*
`InstantiationName/FooTest.HasBlahBlah/2`
for
`"moe"`
*
`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
This statement will instantiate all tests from
`FooTest`
again, each with
parameter values
`"cat"`
and
`"dog"`
:
parameter values
`"cat"`
and
`"dog"`
:
...
@@ -1674,7 +1674,7 @@ To test them, we use the following special techniques:
...
@@ -1674,7 +1674,7 @@ To test them, we use the following special techniques:
*
Both static functions and definitions/declarations in an unnamed namespace
*
Both static functions and definitions/declarations in an unnamed namespace
are only visible within the same translation unit. To test them, you can
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.
`#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!)
this in production code!)
However, a better approach is to move the private code into the
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