Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
fb5d9b66
Commit
fb5d9b66
authored
Apr 20, 2020
by
Abseil Team
Committed by
Gennadiy Rozental
May 01, 2020
Browse files
Googletest export
Fix comment that describes how to test against nullopt. PiperOrigin-RevId: 307448375
parent
a6770105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+1
-1
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
fb5d9b66
...
@@ -4784,7 +4784,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; }
...
@@ -4784,7 +4784,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; }
// and is printable using 'PrintToString'. It is compatible with
// and is printable using 'PrintToString'. It is compatible with
// std::optional/std::experimental::optional.
// std::optional/std::experimental::optional.
// Note that to compare an optional type variable against nullopt you should
// Note that to compare an optional type variable against nullopt you should
// use Eq(nullopt) and not Optional(
Eq(
nullopt)). The latter implies that the
// use Eq(nullopt) and not
Eq(
Optional(nullopt)). The latter implies that the
// optional value contains an optional itself.
// optional value contains an optional itself.
template
<
typename
ValueMatcher
>
template
<
typename
ValueMatcher
>
inline
internal
::
OptionalMatcher
<
ValueMatcher
>
Optional
(
inline
internal
::
OptionalMatcher
<
ValueMatcher
>
Optional
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment