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
c2b2cd88
Commit
c2b2cd88
authored
Sep 06, 2019
by
Abseil Team
Committed by
Shaindel Schwartz
Sep 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
...text exposed to GitHub repo
https://www.github.com/google/googletest
PiperOrigin-RevId: 267617889
parent
3f05f651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cheat_sheet.md
googlemock/docs/cheat_sheet.md
+4
-4
No files found.
googlemock/docs/cheat_sheet.md
View file @
c2b2cd88
...
...
@@ -221,17 +221,17 @@ and the default action will be taken each time.
<!-- GOOGLETEST_CM0020 DO NOT DELETE -->
A
**matcher**
matches a
*single*
argument. You can use it inside
`ON_CALL()`
or
`EXPECT_CALL()`
, or use it to validate a value directly:
`EXPECT_CALL()`
, or use it to validate a value directly
using two macros
:
<!-- mdformat off(github rendering does not support multiline tables) -->
| Ma
tcher
| Description |
| Ma
cro
| Description |
| :----------------------------------- | :------------------------------------ |
|
`EXPECT_THAT(actual_value, matcher)`
| Asserts that
`actual_value`
matches
`matcher`
. |
|
`ASSERT_THAT(actual_value, matcher)`
| The same as
`EXPECT_THAT(actual_value, matcher)`
, except that it generates a
**fatal**
failure. |
<!-- mdformat on -->
Built-in matchers (where
`argument`
is the function argument
) are divided into
several categories:
Built-in matchers (where
`argument`
is the function argument
, e.g.
`actual_value`
in the example above) are divided into
several categories:
#### Wildcard
...
...
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