diff options
author | Muhammad Hilman Beyri <hilmanbeyri@gmail.com> | 2020-01-13 02:29:54 (GMT) |
---|---|---|
committer | Muhammad Hilman Beyri <hilmanbeyri@gmail.com> | 2020-01-13 02:29:54 (GMT) |
commit | c7137f0b8422cb4544a8adb2ebc1de0ea71cae55 (patch) | |
tree | ebca475ef18aa708bea515f06b8b28187ddd6329 /googlemock | |
parent | 3aa538cbfcc65989721632d2a8d79539512ebdb7 (diff) | |
download | googletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.zip googletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.tar.gz googletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.tar.bz2 |
Use IsReadableTypeName IsReadableTypeName in OfType function in gmock-matchers_test.ccrefs/pull/2665/head
Diffstat (limited to 'googlemock')
-rw-r--r-- | googlemock/test/gmock-matchers_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc index 98b814b..96ca895 100644 --- a/googlemock/test/gmock-matchers_test.cc +++ b/googlemock/test/gmock-matchers_test.cc @@ -140,7 +140,7 @@ Matcher<int> GreaterThan(int n) { std::string OfType(const std::string& type_name) { #if GTEST_HAS_RTTI - return " (of type " + type_name + ")"; + return IsReadableTypeName(type_name) ? " (of type " + type_name + ")" : ""; #else return ""; #endif |