aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/docs/CheatSheet.md
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-02-27 16:58:28 -0500
committerGitHub <noreply@github.com>2018-02-27 16:58:28 -0500
commitfe1144246e7ecae688608f7ed0a7ec1ee3e2d2af (patch)
treefbb470f9d5a55bd6b1a4da5f87e898265645e52d /googlemock/docs/CheatSheet.md
parenta9f2368dc07c35e580ffa950fa0d70cf22475bfe (diff)
parente1622337aebe390301fd30ec9c3fee5f31de71e8 (diff)
downloadgoogletest-fe1144246e7ecae688608f7ed0a7ec1ee3e2d2af.tar.gz
googletest-fe1144246e7ecae688608f7ed0a7ec1ee3e2d2af.tar.bz2
googletest-fe1144246e7ecae688608f7ed0a7ec1ee3e2d2af.zip
Merge pull request #1482 from zhangxy988/variant_matcher
Add matcher for std::variant.
Diffstat (limited to 'googlemock/docs/CheatSheet.md')
-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 c6367fdd..f8bbbfe6 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.|