Skip to content

Commit

Permalink
Merge pull request #1945 from akonradi/optional-matcher-doc
Browse files Browse the repository at this point in the history
Add Optional() to the cheat sheet doc.
  • Loading branch information
gennadiycivil committed Oct 30, 2018
2 parents b9347b3 + 39de88c commit cc9dcc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions googlemock/docs/CheatSheet.md
Expand Up @@ -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.|
Expand Down

0 comments on commit cc9dcc5

Please sign in to comment.