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
54689b19
Commit
54689b19
authored
Apr 06, 2021
by
Abseil Team
Committed by
Dino Radaković
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Docs: Clarifying matcher in `Pointwise` and `UnorderedPointwise` PiperOrigin-RevId: 367059198
parent
5c8ca58e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gmock_cheat_sheet.md
docs/gmock_cheat_sheet.md
+5
-4
No files found.
docs/gmock_cheat_sheet.md
View file @
54689b19
...
@@ -362,10 +362,11 @@ messages, you can use:
...
@@ -362,10 +362,11 @@ messages, you can use:
int len)`
-- see
[
Multi-argument Matchers
](
#MultiArgMatchers
)
).
int len)`
-- see
[
Multi-argument Matchers
](
#MultiArgMatchers
)
).
*
The array being matched may be multi-dimensional (i.e. its elements can be
*
The array being matched may be multi-dimensional (i.e. its elements can be
arrays).
arrays).
*
`m`
in
`Pointwise(m, ...)`
should be a matcher for
`::std::tuple<T, U>`
*
`m`
in
`Pointwise(m, ...)`
and
`UnorderedPointwise(m, ...)`
should be a
where
`T`
and
`U`
are the element type of the actual container and the
matcher for
`::std::tuple<T, U>`
where
`T`
and
`U`
are the element type of
expected container, respectively. For example, to compare two
`Foo`
the actual container and the expected container, respectively. For example,
containers where
`Foo`
doesn't support
`operator==`
, one might write:
to compare two
`Foo`
containers where
`Foo`
doesn't support
`operator==`
,
one might write:
```cpp
```cpp
using ::std::get;
using ::std::get;
...
...
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