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
f8f5fcab
Commit
f8f5fcab
authored
Aug 07, 2019
by
Abseil Team
Committed by
Gennadiy Civil
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fix broken links. PiperOrigin-RevId: 262123510
parent
dd5402d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
cook_book.md
googlemock/docs/cook_book.md
+3
-3
for_dummies.md
googlemock/docs/for_dummies.md
+2
-1
No files found.
googlemock/docs/cook_book.md
View file @
f8f5fcab
...
@@ -3718,9 +3718,9 @@ A cardinality is used in `Times()` to tell gMock how many times you expect a
...
@@ -3718,9 +3718,9 @@ A cardinality is used in `Times()` to tell gMock how many times you expect a
call to occur. It doesn't have to be exact. For example, you can say
call to occur. It doesn't have to be exact. For example, you can say
`
AtLeast(5)
` or `
Between(2, 4)
`.
`
AtLeast(5)
` or `
Between(2, 4)
`.
If the [built-in set](
#CardinalityList) of cardinalities doesn't suit you, you
If the [built-in set](
cheat_sheet.md#CardinalityList) of cardinalities doesn't
are free to define your own by implementing the following interface (in
suit you, you are free to define your own by implementing the following
namespace `
testing
`):
interface (in
namespace `
testing
`):
```cpp
```cpp
class CardinalityInterface {
class CardinalityInterface {
...
...
googlemock/docs/for_dummies.md
View file @
f8f5fcab
...
@@ -412,7 +412,8 @@ gMock will report a googletest failure whenever the function is (wrongfully)
...
@@ -412,7 +412,8 @@ gMock will report a googletest failure whenever the function is (wrongfully)
called.
called.
We've seen
`AtLeast(n)`
as an example of fuzzy cardinalities earlier. For the
We've seen
`AtLeast(n)`
as an example of fuzzy cardinalities earlier. For the
list of built-in cardinalities you can use, see
[
here
](
#CardinalityList
)
.
list of built-in cardinalities you can use, see
[
here
](
cheat_sheet.md#CardinalityList
)
.
The
`Times()`
clause can be omitted.
**
If you omit
`Times()`
, gMock will infer
The
`Times()`
clause can be omitted.
**
If you omit
`Times()`
, gMock will infer
the cardinality for you.
**
The rules are easy to remember:
the cardinality for you.
**
The rules are easy to remember:
...
...
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