| 18 | |
| 19 | namespace { |
| 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 |