template <typename StringType>

class EndsWithMatcher

Defined at line 1086 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Implements the polymorphic EndsWith(substring) matcher, which

can be used as a Matcher

<T

> as long as T can be converted to a

string.

Public Methods

void EndsWithMatcher<StringType> (const StringType & suffix)

Defined at line 1088 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

bool MatchAndExplain (const internal::StringView & s, MatchResultListener * listener)

Defined at line 1091 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

template <typename CharType>
bool MatchAndExplain (CharType * s, MatchResultListener * listener)

Accepts pointer types, particularly:

const char*

char*

const wchar_t*

wchar_t*

Defined at line 1106 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

template <typename MatcheeStringType>
bool MatchAndExplain (const MatcheeStringType & s, MatchResultListener * )

Matches anything that can convert to StringType.

This is a template, not just a plain function with const StringType

&

,

because StringView has some interfering non-explicit constructors.

Defined at line 1115 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeTo (::std::ostream * os)

Defined at line 1122 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeNegationTo (::std::ostream * os)

Defined at line 1127 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h