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.

Inherits from internal::MatcherBase<const internal::StringView &>

Functions

Matcher

public void Matcher()

Defined at line 547 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<const internal::StringView &> * impl)

Defined at line 549 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(M && m)

Defined at line 554 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const std::string & s)

Allows the user to write str instead of Eq(str) sometimes, where str is a std::string object.

Matcher

public void Matcher(const char * s)

Allows the user to write "foo" instead of Eq("foo") sometimes.

Matcher

public void Matcher( basic_string_view s)

Allows the user to pass absl::string_views or std::string_views directly.

class Matcher

class Matcher

Defined at line 569 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Inherits from internal::MatcherBase<internal::StringView>

Functions

Matcher

public void Matcher()

Defined at line 573 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<const internal::StringView &> * impl)

Defined at line 575 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<internal::StringView> * impl)

Defined at line 577 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(M && m)

Defined at line 582 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const std::string & s)

Allows the user to write str instead of Eq(str) sometimes, where str is a std::string object.

Matcher

public void Matcher(const char * s)

Allows the user to write "foo" instead of Eq("foo") sometimes.

Matcher

public void Matcher( basic_string_view s)

Allows the user to pass absl::string_views or std::string_views directly.

class Matcher

class Matcher

Defined at line 515 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Inherits from internal::MatcherBase<std::string>

Functions

Matcher

public void Matcher()

Defined at line 519 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<const std::string &> * impl)

Defined at line 521 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<std::string> * impl)

Defined at line 523 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(M && m)

Defined at line 528 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const std::string & s)

Allows the user to write str instead of Eq(str) sometimes, where str is a string object.

Matcher

public void Matcher(const char * s)

Allows the user to write "foo" instead of Eq("foo") sometimes.

class Matcher

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

class Matcher

class Matcher

Defined at line 493 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 std::string matcher is expected.

Inherits from internal::MatcherBase<const std::string &>

Functions

Matcher

public void Matcher()

Defined at line 497 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const MatcherInterface<const std::string &> * impl)

Defined at line 499 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(M && m)

Defined at line 504 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Matcher

public void Matcher(const std::string & s)

Allows the user to write str instead of Eq(str) sometimes, where str is a std::string object.

Matcher

public void Matcher(const char * s)

Allows the user to write "foo" instead of Eq("foo") sometimes.