aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/docs/CheatSheet.md
diff options
context:
space:
mode:
authorJerry Turcios <jerryturcios08@gmail.com>2018-10-31 10:16:27 -0400
committerJerry Turcios <jerryturcios08@gmail.com>2018-10-31 10:16:27 -0400
commitd1beec4023b581e9454cbafd2a0c3ca235dde95b (patch)
treef8836c071a40dcc65188dc5aca034fbc97bf643f /googlemock/docs/CheatSheet.md
parent3896e3b593c332087564a767b3d8f2e7c8dbbd25 (diff)
parent71d4fc8d76ebd539440aff5cfc873be9b50f202b (diff)
downloadgoogletest-d1beec4023b581e9454cbafd2a0c3ca235dde95b.tar.gz
googletest-d1beec4023b581e9454cbafd2a0c3ca235dde95b.tar.bz2
googletest-d1beec4023b581e9454cbafd2a0c3ca235dde95b.zip
Merge branch 'master' of https://github.com/google/googletest
Diffstat (limited to 'googlemock/docs/CheatSheet.md')
-rw-r--r--googlemock/docs/CheatSheet.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/docs/CheatSheet.md b/googlemock/docs/CheatSheet.md
index d5757b23..bc2af11f 100644
--- a/googlemock/docs/CheatSheet.md
+++ b/googlemock/docs/CheatSheet.md
@@ -181,6 +181,7 @@ 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).|
+|`Optional(m)` |`argument` is `optional<>` that contains a value matching `m`.|
|`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.|