diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-02-27 16:58:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 16:58:28 -0500 |
commit | fe1144246e7ecae688608f7ed0a7ec1ee3e2d2af (patch) | |
tree | fbb470f9d5a55bd6b1a4da5f87e898265645e52d /googlemock/docs/CheatSheet.md | |
parent | a9f2368dc07c35e580ffa950fa0d70cf22475bfe (diff) | |
parent | e1622337aebe390301fd30ec9c3fee5f31de71e8 (diff) | |
download | googletest-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.md | 2 |
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.| |