Skip to content

Commit 8dbd60f

Browse files
Abseil Teamcopybara-github
authored andcommitted
Restore the documentation of AnyWith<T>(m) in the matchers reference.
PiperOrigin-RevId: 818813216 Change-Id: If4cb881a61a05b2c6634aa0d5ee66ea2962f168a
1 parent 2ce9d8f commit 8dbd60f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/reference/matchers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Matcher | Description
4949
| `NotNull()` | `argument` is a non-null pointer (raw or smart). |
5050
| `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 `==`.)|
5151
| `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`. |
5253
| `Ref(variable)` | `argument` is a reference to `variable`. |
5354
| `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. |
5455

0 commit comments

Comments
 (0)