summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-07-07 14:28:06 (GMT)
committerDerek Mauro <dmauro@google.com>2021-07-07 18:34:28 (GMT)
commit8306020a3e9eceafec65508868d7ab5c63bb41f7 (patch)
tree5e8b09aa5a8e2be5184d9aa0838acdc4438a3497 /docs
parent977cffc4423a2d6c0df3fc9a7b5253b8f79c3f18 (diff)
downloadgoogletest-8306020a3e9eceafec65508868d7ab5c63bb41f7.zip
googletest-8306020a3e9eceafec65508868d7ab5c63bb41f7.tar.gz
googletest-8306020a3e9eceafec65508868d7ab5c63bb41f7.tar.bz2
Googletest export
Add `Conditional` wrapper to gtest This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood. PiperOrigin-RevId: 383407665
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/matchers.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/reference/matchers.md b/docs/reference/matchers.md
index 0d8f81b..1a60b4c 100644
--- a/docs/reference/matchers.md
+++ b/docs/reference/matchers.md
@@ -238,6 +238,7 @@ You can make a matcher from one or more other matchers:
| `AnyOf(m1, m2, ..., mn)` | `argument` matches at least one of the matchers `m1` to `mn`. |
| `AnyOfArray({m0, m1, ..., mn})`, `AnyOfArray(a_container)`, `AnyOfArray(begin, end)`, `AnyOfArray(array)`, or `AnyOfArray(array, count)` | The same as `AnyOf()` except that the matchers come from an initializer list, STL-style container, iterator range, or C-style array. |
| `Not(m)` | `argument` doesn't match matcher `m`. |
+| `Conditional(cond, m1, m2)` | Matches matcher `m1` if `cond` evalutes to true, else matches `m2`.|
## Adapters for Matchers