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
Copy file name to clipboardExpand all lines: docs/reference/matchers.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Matcher | Description
49
49
|`NotNull()`|`argument` is a non-null pointer (raw or smart). |
50
50
|`Optional(m)`|`argument` is `optional<>` that contains a value matching `m`. (For testing whether an `optional<>` is set, check for equality with `nullopt`. You may need to use `Eq(nullopt)` if the inner type doesn't have `==`.)|
51
51
|`VariantWith<T>(m)`|`argument` is `variant<>` that holds the alternative of type T with a value matching `m`. |
52
+
|`AnyWith<T>(m)`|`argument` is `any<>` that holds a value of type T with a value matching `m`. |
52
53
|`Ref(variable)`|`argument` is a reference to `variable`. |
53
54
|`TypedEq<type>(value)`|`argument` has type `type` and is equal to `value`. You may need to use this instead of `Eq(value)` when the mock function is overloaded. |
0 commit comments