Lines Matching refs:argument

66 convention as the first argument to the macro. For example,
149 A **matcher** matches a _single_ argument. You can use it inside
157 Built-in matchers (where `argument` is the function argument) are
161 |`_`|`argument` can be any value of the correct type.|
163 |`A<type>()` or `An<type>()`|`argument` can be any value of type `type`. |
167 |`Eq(value)` or `value`|`argument == value`|
169 |`Ge(value)` |`argument >= value`|
170 |`Gt(value)` |`argument > value` |
171 |`Le(value)` |`argument <= value`|
172 |`Lt(value)` |`argument < value` |
173 |`Ne(value)` |`argument != value`|
174 |`IsNull()` |`argument` is a `NULL` pointer (raw or smart).|
175 |`NotNull()` |`argument` is a non-null pointer (raw or smart).|
176 |`Ref(variable)` |`argument` is a reference to `variable`.|
177 |`TypedEq<type>(value)`|`argument` has type `type` and is equal to `value`. You may need to use thi…
188 |`DoubleEq(a_double)`|`argument` is a `double` value approximately equal to `a_double`, treating tw…
190 |`FloatEq(a_float)` |`argument` is a `float` value approximately equal to `a_float`, treating two …
191 |`NanSensitiveDoubleEq(a_double)`|`argument` is a `double` value approximately equal to `a_double`,…
192 |`NanSensitiveFloatEq(a_float)`|`argument` is a `float` value approximately equal to `a_float`, tre…
202 |`DoubleNear(a_double, max_abs_error)`|`argument` is a `double` value close to `a_double` (absolute…
204 |`FloatNear(a_float, max_abs_error)` |`argument` is a `float` value close to `a_float` (absolute e…
205 |`NanSensitiveDoubleNear(a_double, max_abs_error)`|`argument` is a `double` value close to `a_doubl…
206 |`NanSensitiveFloatNear(a_float, max_abs_error)`|`argument` is a `float` value close to `a_float` (…
210 The `argument` can be either a C string or a C++ string object:
212 |`ContainsRegex(string)`|`argument` matches the given regular expression.|
214 |`EndsWith(suffix)` |`argument` ends with string `suffix`. |
215 |`HasSubstr(string)` |`argument` contains `string` as a sub-string. |
216 |`MatchesRegex(string)` |`argument` matches the given regular expression with the match starting at…
217 |`StartsWith(prefix)` |`argument` starts with string `prefix`. |
218 |`StrCaseEq(string)` |`argument` is equal to `string`, ignoring case. |
219 |`StrCaseNe(string)` |`argument` is not equal to `string`, ignoring case.|
220 |`StrEq(string)` |`argument` is equal to `string`. |
221 |`StrNe(string)` |`argument` is not equal to `string`. |
238 | `Contains(e)` | `argument` contains an element that matches `e`, which can be either a…
239 | `Each(e)` | `argument` is a container where _every_ element matches `e`, which can…
240 | `ElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, where the i-th element matches …
242 | `IsEmpty()` | `argument` is an empty container (`container.empty()`). …
243argument` contains the same number of elements as in `container`, and for all i, (the i-th element…
244 | `SizeIs(m)` | `argument` is a container whose size matches `m`. E.g. `SizeIs(2)` or …
245 | `UnorderedElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, and under some permuta…
247 …`argument` is sorted using the `<` operator, it matches container matcher `m`. E.g. `WhenSorted(Un…
248 …d(m)`, except that the given comparator instead of `<` is used to sort `argument`. E.g. `WhenSorte…
254 …nter and a count (e.g. in `Bar(const T* buffer, int len)` -- see [Multi-argument Matchers](#Multia…
269 …(&class::field, m)`|`argument.field` (or `argument->field` when `argument` is a plain pointer) mat…
271 |`Key(e)` |`argument.first` matches `e`, which can be either a value or a matcher. …
272 |`Pair(m1, m2)` |`argument` is an `std::pair` whose `first` field matches `m1` and `secon…
273 …:property, m)`|`argument.property()` (or `argument->property()` when `argument` is a plain pointer…
277 |`ResultOf(f, m)`|`f(argument)` matches matcher `m`, where `f` is a function or functor.|
282 |`Pointee(m)`|`argument` (either a smart pointer or a raw pointer) points to a value that matches m…
287 Technically, all matchers match a _single_ value. A "multi-argument"
310 |`AllOf(m1, m2, ..., mn)`|`argument` matches all of the matchers `m1` to `mn`.|
312 |`AnyOf(m1, m2, ..., mn)`|`argument` matches at least one of the matchers `m1` to `mn`.|
313 |`Not(m)` |`argument` doesn't match matcher `m`. |
320 |`Truly(predicate)` |`predicate(argument)` returns something considered by C++ to be true, where `p…
357 |`ReturnArg<N>()`|Return the `N`-th (0-based) argument.|
368 | `DeleteArg<N>()` | Delete the `N`-th (0-based) argument, which must be a pointer. |
369 | `SaveArg<N>(pointer)` | Save the `N`-th (0-based) argument to `*pointer`. |
370 | `SaveArgPointee<N>(pointer)` | Save the value pointed to by the `N`-th (0-based) argument to `*po…
371 …ArgReferee<N>(value)` | Assign value to the variable referenced by the `N`-th (0-based) argument. |
372 |`SetArgPointee<N>(value)` |Assign `value` to the variable pointed by the `N`-th (0-based) argument
374 …range [`first`, `last`) to the array pointed to by the `N`-th (0-based) argument, which can be eit…
385 |`InvokeArgument<N>(arg1, arg2, ..., argk)`|Invoke the mock function's `N`-th (0-based) argument, w…
397 In `InvokeArgument<N>(...)`, if an argument needs to be passed by reference, wrap it inside `ByRef(…
401 calls the mock function's #2 argument, passing to it `5` and `string("Hi")` by value, and `foo` by …
415 |`WithArg<N>(a)` |Pass the `N`-th (0-based) argument of the mock function to action `a` and…
421 …arg1; }` | Defines an action `Sum()` to return the sum of the mock function's argument #0 and #1. |
423 …n; }` | Defines an action `Plus(n)` to return the sum of the mock function's argument #0 and `n`. |