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: 324600664
This commit is contained in:
		@@ -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. |
 | 
			
		||||
| `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. |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user