diff options
author | Abseil Team <absl-team@google.com> | 2020-08-03 16:33:44 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2020-08-07 17:08:00 (GMT) |
commit | 5a5caab358c2c7059adef1acb22f6cab907b888d (patch) | |
tree | fb0495e346dd9f717be4e05fe45a3086b6cf283f /googlemock/docs | |
parent | 48ec64092a38621210ecd835fde61d76861269c1 (diff) | |
download | googletest-5a5caab358c2c7059adef1acb22f6cab907b888d.zip googletest-5a5caab358c2c7059adef1acb22f6cab907b888d.tar.gz googletest-5a5caab358c2c7059adef1acb22f6cab907b888d.tar.bz2 |
Googletest export
Fix DoAll to work with move-only sink arguments.
This changes types of the first n - 1 actions so that they only get a readonly
view of the arguments. The last action will accept move only objects.
PiperOrigin-RevId: 324619666
Diffstat (limited to 'googlemock/docs')
-rw-r--r-- | googlemock/docs/cheat_sheet.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/docs/cheat_sheet.md b/googlemock/docs/cheat_sheet.md index b47e00f..85620f7 100644 --- a/googlemock/docs/cheat_sheet.md +++ b/googlemock/docs/cheat_sheet.md @@ -616,7 +616,7 @@ composite action - trying to do so will result in a run-time error. <!-- mdformat off(no multiline tables) --> | | | | :----------------------------- | :------------------------------------------ | -| `DoAll(a1, a2, ..., an)` | Do all actions `a1` to `an` and return the result of `an` in each invocation. The first `n - 1` sub-actions must return void and will receive a readonly view of the arguments. | +| `DoAll(a1, a2, ..., an)` | Do all actions `a1` to `an` and return the result of `an` in each invocation. The first `n - 1` sub-actions must return void. | | `IgnoreResult(a)` | Perform action `a` and ignore its result. `a` must not return void. | | `WithArg<N>(a)` | Pass the `N`-th (0-based) argument of the mock function to action `a` and perform it. | | `WithArgs<N1, N2, ..., Nk>(a)` | Pass the selected (0-based) arguments of the mock function to action `a` and perform it. | |