Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
5b43f14b
Unverified
Commit
5b43f14b
authored
Sep 16, 2021
by
Christian Clauss
Committed by
GitHub
Sep 16, 2021
Browse files
Fix typos discovered by codespell
parent
861a75ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/gmock_cook_book.md
docs/gmock_cook_book.md
+3
-3
No files found.
docs/gmock_cook_book.md
View file @
5b43f14b
...
@@ -1452,7 +1452,7 @@ the pointer is copied. When the last matcher that references the implementation
...
@@ -1452,7 +1452,7 @@ the pointer is copied. When the last matcher that references the implementation
object dies, the implementation object will be deleted.
object dies, the implementation object will be deleted.
Therefore, if you have some complex matcher that you want to use again and
Therefore, if you have some complex matcher that you want to use again and
again, there is no need to build it everytime. Just assign it to a matcher
again, there is no need to build it every
time. Just assign it to a matcher
variable and use that variable repeatedly! For example,
variable and use that variable repeatedly! For example,
```
cpp
```
cpp
...
@@ -2601,7 +2601,7 @@ efficient. When the last action that references the implementation object dies,
...
@@ -2601,7 +2601,7 @@ efficient. When the last action that references the implementation object dies,
the implementation object will be deleted.
the implementation object will be deleted.
If you have some complex action that you want to use again and again, you may
If you have some complex action that you want to use again and again, you may
not have to build it from scratch everytime. If the action doesn't have an
not have to build it from scratch every
time. If the action doesn't have an
internal state (i.e. if it always does the same thing no matter how many times
internal state (i.e. if it always does the same thing no matter how many times
it has been called), you can assign it to an action variable and use that
it has been called), you can assign it to an action variable and use that
variable repeatedly. For example:
variable repeatedly. For example:
...
@@ -4188,7 +4188,7 @@ This implementation class does *not* need to inherit from any particular class.
...
@@ -4188,7 +4188,7 @@ This implementation class does *not* need to inherit from any particular class.
What matters is that it must have a `
Perform()
` method template. This method
What matters is that it must have a `
Perform()
` method template. This method
template takes the mock function's arguments as a tuple in a **single**
template takes the mock function's arguments as a tuple in a **single**
argument, and returns the result of the action. It can be either `
const
` or not,
argument, and returns the result of the action. It can be either `
const
` or not,
but must be invo
k
able with exactly one template argument, which is the result
but must be invo
c
able with exactly one template argument, which is the result
type. In other words, you must be able to call `
Perform
<R>
(args)
` where `
R
` is
type. In other words, you must be able to call `
Perform
<R>
(args)
` where `
R
` is
the mock function's return type and `
args
` is its arguments in a tuple.
the mock function's return type and `
args
` is its arguments in a tuple.
...
...
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