class Matcher
Defined at line 463 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
A Matcher<T> is a copyable and IMMUTABLE (except by assignment) object that can check whether a value of type T matches. The implementation of Matcher<T> is just a std::shared_ptr to const MatcherInterface<T>. Don't inherit from Matcher!
Inherits from internal::MatcherBase<T>
Functions
Matcher<T>
public void Matcher<T>()
Defined at line 468 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Constructs a null matcher. Needed for storing Matcher objects in STL containers. A default-constructed matcher is not yet initialized. You cannot use it until a valid value has been assigned to it.
Matcher<T>
public void Matcher<T>(const MatcherInterface<const T &> * impl)
Defined at line 471 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Constructs a matcher from its implementation.
Matcher<T>
public void Matcher<T>(const MatcherInterface<U> * impl, typename std::enable_if<!std::is_same<U, const U &>::value>::type * )
Defined at line 475 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Matcher<T>
public void Matcher<T>(M && m)
Defined at line 483 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Matcher<T>
public void Matcher<T>(T value)
Defined at line 868 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Constructs a Matcher<T> from a 'value' of type T. The constructed matcher matches any value that's equal to 'value'.
Implicit constructor here allows people to write EXPECT_CALL(foo, Bar(5)) instead of EXPECT_CALL(foo, Bar(Eq(5))) sometimes