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
0eea2e9f
Commit
0eea2e9f
authored
Apr 30, 2020
by
Abseil Team
Committed by
Gennadiy Rozental
May 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fix documentation. This address
https://github.com/google/googletest/pull/2827
. PiperOrigin-RevId: 309241571
parent
3cfb4117
Show 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 @
0eea2e9f
...
@@ -1776,7 +1776,7 @@ In frameworks that report a failure by throwing an exception, you could catch
...
@@ -1776,7 +1776,7 @@ In frameworks that report a failure by throwing an exception, you could catch
the exception and assert on it. But googletest doesn't use exceptions, so how do
the exception and assert on it. But googletest doesn't use exceptions, so how do
we test that a piece of code generates an expected failure?
we test that a piece of code generates an expected failure?
gunit-spi.h
contains some constructs to do this. After #including this header,
`"gtest/gtest-spi.h"`
contains some constructs to do this. After #including this header,
you can use
you can use
```
c++
```
c++
...
@@ -1924,8 +1924,8 @@ To obtain a `TestInfo` object for the currently running test, call
...
@@ -1924,8 +1924,8 @@ To obtain a `TestInfo` object for the currently running test, call
```
```
`current_test_info()`
returns a null pointer if no test is running. In
`current_test_info()`
returns a null pointer if no test is running. In
particular, you cannot find the test suite name in
`
TestSuiteSetUp
()`
,
particular, you cannot find the test suite name in
`
SetUpTestSuite
()`
,
`Te
stSuiteTearDown
()`
(where you know the test suite name implicitly), or
`Te
arDownTestSuite
()`
(where you know the test suite name implicitly), or
functions called from them.
functions called from them.
## Extending googletest by Handling Test Events
## Extending googletest by Handling Test Events
...
...
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