template <>
class Matcher
Defined at line 543 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
The following two specializations allow the user to write str
instead of Eq(str) and "foo" instead of Eq("foo") when a absl::string_view
matcher is expected.
Public Methods
void Matcher ()
Defined at line 547 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void Matcher (const MatcherInterface<const internal::StringView &> * impl)
Defined at line 549 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
template <typename M, typename = typename std::remove_reference<
M>::type::is_gtest_matcher>
void Matcher (M && m)
Defined at line 554 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void Matcher (const std::string & s)
Allows the user to write str instead of Eq(str) sometimes, where
str is a std::string object.
void Matcher (const char * s)
Allows the user to write "foo" instead of Eq("foo") sometimes.
void Matcher (internal::StringView s)
Allows the user to pass absl::string_views or std::string_views directly.