proxygen
testing::internal::HasSubstrMatcher< StringType > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 HasSubstrMatcher (const StringType &substring)
 
template<typename CharType >
bool MatchAndExplain (CharType *s, MatchResultListener *listener) const
 
template<typename MatcheeStringType >
bool MatchAndExplain (const MatcheeStringType &s, MatchResultListener *) const
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
 HasSubstrMatcher (const StringType &substring)
 
template<typename CharType >
bool MatchAndExplain (CharType *s, MatchResultListener *listener) const
 
template<typename MatcheeStringType >
bool MatchAndExplain (const MatcheeStringType &s, MatchResultListener *) const
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
 HasSubstrMatcher (const StringType &substring)
 
template<typename CharType >
bool MatchAndExplain (CharType *s, MatchResultListener *listener) const
 
template<typename MatcheeStringType >
bool MatchAndExplain (const MatcheeStringType &s, MatchResultListener *) const
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (HasSubstrMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (HasSubstrMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (HasSubstrMatcher)
 

Private Attributes

const StringType substring_
 

Detailed Description

template<typename StringType>
class testing::internal::HasSubstrMatcher< StringType >

Definition at line 1187 of file gmock-matchers.h.

Constructor & Destructor Documentation

template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::HasSubstrMatcher ( const StringType &  substring)
inlineexplicit

Definition at line 1189 of file gmock-matchers.h.

1190  : substring_(substring) {}
template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::HasSubstrMatcher ( const StringType &  substring)
inlineexplicit

Definition at line 1189 of file gmock-matchers.h.

1190  : substring_(substring) {}
template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::HasSubstrMatcher ( const StringType &  substring)
inlineexplicit

Definition at line 1189 of file gmock-matchers.h.

1190  : substring_(substring) {}

Member Function Documentation

template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo ( ::std::ostream *  os) const
inline

Definition at line 1219 of file gmock-matchers.h.

References testing::internal::UniversalPrint().

1219  {
1220  *os << "has no substring ";
1222  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo ( ::std::ostream *  os) const
inline

Definition at line 1219 of file gmock-matchers.h.

References GTEST_DISALLOW_ASSIGN_, and testing::internal::UniversalPrint().

1219  {
1220  *os << "has no substring ";
1222  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo ( ::std::ostream *  os) const
inline

Definition at line 1219 of file gmock-matchers.h.

References GTEST_DISALLOW_ASSIGN_, and testing::internal::UniversalPrint().

1219  {
1220  *os << "has no substring ";
1222  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeTo ( ::std::ostream *  os) const
inline

Definition at line 1214 of file gmock-matchers.h.

References testing::internal::UniversalPrint().

1214  {
1215  *os << "has substring ";
1217  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeTo ( ::std::ostream *  os) const
inline

Definition at line 1214 of file gmock-matchers.h.

References testing::internal::UniversalPrint().

1214  {
1215  *os << "has substring ";
1217  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
void testing::internal::HasSubstrMatcher< StringType >::DescribeTo ( ::std::ostream *  os) const
inline

Definition at line 1214 of file gmock-matchers.h.

References testing::internal::UniversalPrint().

1214  {
1215  *os << "has substring ";
1217  }
void UniversalPrint(const T &value,::std::ostream *os)
template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::GTEST_DISALLOW_ASSIGN_ ( HasSubstrMatcher< StringType >  )
private
template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::GTEST_DISALLOW_ASSIGN_ ( HasSubstrMatcher< StringType >  )
private
template<typename StringType >
testing::internal::HasSubstrMatcher< StringType >::GTEST_DISALLOW_ASSIGN_ ( HasSubstrMatcher< StringType >  )
private
template<typename StringType >
template<typename CharType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( CharType *  s,
MatchResultListener listener 
) const
inline

Definition at line 1198 of file gmock-matchers.h.

1198  {
1199  return s != NULL && MatchAndExplain(StringType(s), listener);
1200  }
bool MatchAndExplain(CharType *s, MatchResultListener *listener) const
static set< string > s
template<typename StringType >
template<typename CharType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( CharType *  s,
MatchResultListener listener 
) const
inline

Definition at line 1198 of file gmock-matchers.h.

1198  {
1199  return s != NULL && MatchAndExplain(StringType(s), listener);
1200  }
bool MatchAndExplain(CharType *s, MatchResultListener *listener) const
static set< string > s
template<typename StringType >
template<typename CharType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( CharType *  s,
MatchResultListener listener 
) const
inline

Definition at line 1198 of file gmock-matchers.h.

1198  {
1199  return s != NULL && MatchAndExplain(StringType(s), listener);
1200  }
bool MatchAndExplain(CharType *s, MatchResultListener *listener) const
static set< string > s
template<typename StringType >
template<typename MatcheeStringType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( const MatcheeStringType &  s,
MatchResultListener  
) const
inline

Definition at line 1207 of file gmock-matchers.h.

1208  {
1209  const StringType& s2(s);
1210  return s2.find(substring_) != StringType::npos;
1211  }
static set< string > s
template<typename StringType >
template<typename MatcheeStringType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( const MatcheeStringType &  s,
MatchResultListener  
) const
inline

Definition at line 1207 of file gmock-matchers.h.

1208  {
1209  const StringType& s2(s);
1210  return s2.find(substring_) != StringType::npos;
1211  }
static set< string > s
template<typename StringType >
template<typename MatcheeStringType >
bool testing::internal::HasSubstrMatcher< StringType >::MatchAndExplain ( const MatcheeStringType &  s,
MatchResultListener  
) const
inline

Definition at line 1207 of file gmock-matchers.h.

1208  {
1209  const StringType& s2(s);
1210  return s2.find(substring_) != StringType::npos;
1211  }
static set< string > s

Member Data Documentation

template<typename StringType >
const StringType testing::internal::HasSubstrMatcher< StringType >::substring_
private

Definition at line 1225 of file gmock-matchers.h.


The documentation for this class was generated from the following file: