From 8dbd60f7d5f88aca74ef76f4dd5258d35c324199 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 13 Oct 2025 13:43:39 -0700 Subject: [PATCH] Restore the documentation of `AnyWith(m)` in the matchers reference. PiperOrigin-RevId: 818813216 Change-Id: If4cb881a61a05b2c6634aa0d5ee66ea2962f168a --- docs/reference/matchers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/matchers.md b/docs/reference/matchers.md index 8b3d1405a..4c234e17c 100644 --- a/docs/reference/matchers.md +++ b/docs/reference/matchers.md @@ -49,6 +49,7 @@ Matcher | Description | `NotNull()` | `argument` is a non-null pointer (raw or smart). | | `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 `==`.)| | `VariantWith(m)` | `argument` is `variant<>` that holds the alternative of type T with a value matching `m`. | +| `AnyWith(m)` | `argument` is `any<>` that holds a value of type T with a value matching `m`. | | `Ref(variable)` | `argument` is a reference to `variable`. | | `TypedEq(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. |