You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Return()`| Return from a `void` mock function. |
12
12
|`Return(value)`| Return `value`. If the type of `value` is different to the mock function's return type, `value` is converted to the latter type <i>at the time the expectation is set</i>, not when the action is executed. |
@@ -20,7 +20,7 @@ provided by GoogleTest. All actions are defined in the `::testing` namespace.
|`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. |
102
102
|`IgnoreResult(a)`| Perform action `a` and ignore its result. `a` must not return void. |
@@ -106,7 +106,7 @@ composite action - trying to do so will result in a run-time error.
|`MATCHER(IsEven, "") { return (arg % 2) == 0; }`| Defines a matcher `IsEven()` to match an even number. |
265
265
|`MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }`| Defines a matcher `IsDivisibleBy(n)` to match a number divisible by `n`. |
0 commit comments