summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorXiaoyi Zhang <zhangxy988@gmail.com>2018-02-27 21:00:42 (GMT)
committerXiaoyi Zhang <zhangxy988@gmail.com>2018-02-27 21:00:42 (GMT)
commit2eb31c185cfd6c8ae84dd6cad5bc6668901544a8 (patch)
treea08a52459a7d812fe168844175aef7a77c7633bc /googlemock
parent190e2cdd0b55d289136a177638942e1cd1b2d457 (diff)
downloadgoogletest-2eb31c185cfd6c8ae84dd6cad5bc6668901544a8.zip
googletest-2eb31c185cfd6c8ae84dd6cad5bc6668901544a8.tar.gz
googletest-2eb31c185cfd6c8ae84dd6cad5bc6668901544a8.tar.bz2
Add documentation for VariantWith.
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/docs/CheatSheet.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/googlemock/docs/CheatSheet.md b/googlemock/docs/CheatSheet.md
index c6367fd..f8bbbfe 100644
--- a/googlemock/docs/CheatSheet.md
+++ b/googlemock/docs/CheatSheet.md
@@ -178,6 +178,8 @@ divided into several categories:
|`Ne(value)` |`argument != value`|
|`IsNull()` |`argument` is a `NULL` pointer (raw or smart).|
|`NotNull()` |`argument` is a non-null pointer (raw or smart).|
+|`VariantWith<T>(m)` |`argument` is `variant<>` that holds the alternative of
+type T with a value matching `m`.|
|`Ref(variable)` |`argument` is a reference to `variable`.|
|`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.|