diff options
author | Abseil Team <absl-team@google.com> | 2020-08-17 16:07:02 (GMT) |
---|---|---|
committer | vslashg <gfalcon@google.com> | 2020-08-24 03:50:54 (GMT) |
commit | fc1e7788993bd1418f80d64eb430bd9ac023db68 (patch) | |
tree | 635927e3cece061c1c042d90c1ef71f32b0b8098 /googlemock/docs | |
parent | adeef192947fbc0f68fa14a6c494c8df32177508 (diff) | |
download | googletest-fc1e7788993bd1418f80d64eb430bd9ac023db68.zip googletest-fc1e7788993bd1418f80d64eb430bd9ac023db68.tar.gz googletest-fc1e7788993bd1418f80d64eb430bd9ac023db68.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: 327031893
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 2500260..cc7e699 100644 --- a/googlemock/docs/cheat_sheet.md +++ b/googlemock/docs/cheat_sheet.md @@ -618,7 +618,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. | +| `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. | | `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. | |