MCPcopy Create free account
hub / github.com/catchorg/Catch2 / MatchAllMatcher

Class MatchAllMatcher

tests/SelfTest/UsageTests/MatchersConstexpr.tests.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace {
23 struct MatchAllMatcher final : public Catch::Matchers::MatcherGenericBase {
24 public:
25 template <typename Any>
26 constexpr bool match( Any&& ) const {
27 return true;
28 }
29
30 std::string describe() const override {
31 using namespace std::string_literals;
32 return "Matches anything"s;
33 }
34 };
35
36 constexpr MatchAllMatcher MatchAll() { return MatchAllMatcher(); }
37

Callers 1

MatchAllFunction · 0.70

Calls

no outgoing calls

Tested by 1

MatchAllFunction · 0.56