diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-10-30 09:34:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 09:34:35 -0400 |
commit | cc9dcc54129bafebaeb8e9ffa619bffb71a08474 (patch) | |
tree | c29cf608c95f75eaae7c92a5e5d1132812736000 | |
parent | b9347b31c338851879d0105f0fe32d09007f0433 (diff) | |
parent | 39de88cb9cd43c46330bf20726e00e9b211f6ce9 (diff) | |
download | googletest-cc9dcc54129bafebaeb8e9ffa619bffb71a08474.tar.gz googletest-cc9dcc54129bafebaeb8e9ffa619bffb71a08474.tar.bz2 googletest-cc9dcc54129bafebaeb8e9ffa619bffb71a08474.zip |
Merge pull request #1945 from akonradi/optional-matcher-doc
Add Optional() to the cheat sheet doc.
-rw-r--r-- | googlemock/docs/CheatSheet.md | 1 |
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.| |