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

Class MatchNoneMatcher

tests/ExtraTests/X05-DeferredStaticChecks.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

MatchNoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected