Lines Matching full:argument

3 A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or
21 Built-in matchers (where `argument` is the function argument, e.g.
31 `_` | `argument` can be any value of the correct type.
32 `A<type>()` or `An<type>()` | `argument` can be any value of type `type`.
38 | `Eq(value)` or `value` | `argument == value` |
39 | `Ge(value)` | `argument >= value` |
40 | `Gt(value)` | `argument > value` |
41 | `Le(value)` | `argument <= value` |
42 | `Lt(value)` | `argument < value` |
43 | `Ne(value)` | `argument != value` |
44 | `IsFalse()` | `argument` evaluates to `false` in a Boolean context. |
45 | `IsTrue()` | `argument` evaluates to `true` in a Boolean context. |
46 | `IsNull()` | `argument` is a `NULL` pointer (raw or smart). |
47 | `NotNull()` | `argument` is a non-null pointer (raw or smart). |
48 | `Optional(m)` | `argument` is `optional<>` that contains a value matching `m`. (For test…
49 | `VariantWith<T>(m)` | `argument` is `variant<>` that holds the alternative of type T with a va…
50 | `Ref(variable)` | `argument` is a reference to `variable`. |
51 | `TypedEq<type>(value)` | `argument` has type `type` and is equal to `value`. You may need to use …
69 | `DoubleEq(a_double)` | `argument` is a `double` value approximately equal to `a_doubl…
70 | `FloatEq(a_float)` | `argument` is a `float` value approximately equal to `a_float`…
71 | `NanSensitiveDoubleEq(a_double)` | `argument` is a `double` value approximately equal to `a_doubl…
72 | `NanSensitiveFloatEq(a_float)` | `argument` is a `float` value approximately equal to `a_float`…
73 | `IsNan()` | `argument` is any floating-point type with a NaN value. |
84 | `DoubleNear(a_double, max_abs_error)` | `argument` is a `double` value close to `a_do…
85 | `FloatNear(a_float, max_abs_error)` | `argument` is a `float` value close to `a_flo…
86 | `NanSensitiveDoubleNear(a_double, max_abs_error)` | `argument` is a `double` value close to `a_do…
87 | `NanSensitiveFloatNear(a_float, max_abs_error)` | `argument` is a `float` value close to `a_flo…
91 The `argument` can be either a C string or a C++ string object:
95 | `ContainsRegex(string)` | `argument` matches the given regular expression. |
96 | `EndsWith(suffix)` | `argument` ends with string `suffix`. |
97 | `HasSubstr(string)` | `argument` contains `string` as a sub-string. |
98 | `IsEmpty()` | `argument` is an empty string. |
99 | `MatchesRegex(string)` | `argument` matches the given regular expression with the match startin…
100 | `StartsWith(prefix)` | `argument` starts with string `prefix`. |
101 | `StrCaseEq(string)` | `argument` is equal to `string`, ignoring case. |
102 | `StrCaseNe(string)` | `argument` is not equal to `string`, ignoring case. |
103 | `StrEq(string)` | `argument` is equal to `string`. |
104 | `StrNe(string)` | `argument` is not equal to `string`. |
105 | `WhenBase64Unescaped(m)` | `argument` is a base-64 escaped string whose unescaped string matches …
121 | `BeginEndDistanceIs(m)` | `argument` is a container whose `begin()` and `end()` iterators are sep…
123 | `Contains(e)` | `argument` contains an element that matches `e`, which can be either a value or a…
124 | `Contains(e).Times(n)` | `argument` contains elements that match `e`, which can be either a value…
125 | `Each(e)` | `argument` is a container where *every* element matches `e`, which can be either a va…
126 | `ElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, where the *i*-th element matche…
128 | `IsEmpty()` | `argument` is an empty container (`container.empty()`). |
129 …tOf(begin, end)`, `IsSubsetOf(array)`, or `IsSubsetOf(array, count)` | `argument` matches `Unorder…
130 …IsSupersetOf(array)`, or `IsSupersetOf(array, count)` | Some subset of `argument` matches `Unorder…
131argument` contains the same number of elements as in `container`, and for all i, (the i-th element…
132 | `SizeIs(m)` | `argument` is a container whose size matches `m`. E.g. `SizeIs(2)` or `SizeIs(Lt(2)…
133 | `UnorderedElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, and under *some* permu…
136 …When `argument` is sorted using the `<` operator, it matches container matcher `m`. E.g. `WhenSort…
137 …d(m)`, except that the given comparator instead of `<` is used to sort `argument`. E.g. `WhenSorte…
145 int len)` -- see [Multi-argument Matchers](#MultiArgMatchers)).
166 …:field, m)` | `argument.field` (or `argument->field` when `argument` is a plain pointer) mat…
168 | `Key(e)` | `argument.first` matches `e`, which can be either a value or a …
169 | `Pair(m1, m2)` | `argument` is an `std::pair` whose `first` field matches `m1` a…
170 | `FieldsAre(m...)` | `argument` is a compatible object where each field matches …
171argument.property()` (or `argument->property()` when `argument` is a plain pointer) matches matche…
200 | `ResultOf(f, m)` | `f(argument)` matches matcher `m`, where `f` is a function or functor. |
207 | `Address(m)` | the result of `std::addressof(argument)` matches `m`. |
208 | `Pointee(m)` | `argument` (either a smart pointer or a raw pointer) points to a valu…
209argument` (either a smart pointer or a raw pointer) contains a pointer that matches `m`. `m` will …
210 | `WhenDynamicCastTo<T>(m)` | when `argument` is passed through `dynamic_cast<T>()`, it matches mat…
212 ## Multi-argument Matchers {#MultiArgMatchers}
214 Technically, all matchers match a *single* value. A "multi-argument" matcher is
241 | `AllOf(m1, m2, ..., mn)` | `argument` matches all of the matchers `m1` to `mn`. |
243 | `AnyOf(m1, m2, ..., mn)` | `argument` matches at least one of the matchers `m1` to `mn`. |
245 | `Not(m)` | `argument` doesn't match matcher `m`. |
254 | `Truly(predicate)` | `predicate(argument)` returns something considered by C++ to be true, w…