summaryrefslogtreecommitdiffstats
path: root/googlemock/include
diff options
context:
space:
mode:
authorVladimir Goncharov <amatanhead@yandex-team.ru>2020-07-03 20:50:06 +0300
committerVladimir Goncharov <amatanhead@yandex-team.ru>2020-08-03 23:47:57 +0300
commit49d1201a7ec83987deaae161958577deeba1a9ed (patch)
treee125ed698fce461ac989b54d78b2c9028e4cde81 /googlemock/include
parent46734d9a66e858e2b419729b52d6aa21faa614c7 (diff)
downloadgoogletest-49d1201a7ec83987deaae161958577deeba1a9ed.tar.gz
googletest-49d1201a7ec83987deaae161958577deeba1a9ed.zip
Add missing documentation piece
Diffstat (limited to 'googlemock/include')
-rw-r--r--googlemock/include/gmock/gmock-matchers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h
index cc045648..708c7c87 100644
--- a/googlemock/include/gmock/gmock-matchers.h
+++ b/googlemock/include/gmock/gmock-matchers.h
@@ -4812,7 +4812,8 @@ class ExceptionMatcherImpl {
//
// EXPECT_THAT(
// []() { throw std::runtime_error("message"); },
-// Throws
+// Throws<std::runtime_error>(
+// Property(&std::runtime_error::what, HasSubstr("message"))));
template <typename Err>
PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>>
OpenPOWER on IntegriCloud