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

Class MatchTrueMatcher

tests/SelfTest/UsageTests/MatchersConstexpr.tests.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 constexpr MatchAllMatcher MatchAll() { return MatchAllMatcher(); }
37
38 struct MatchTrueMatcher final : public Catch::Matchers::MatcherGenericBase {
39 public:
40 constexpr bool match( bool b ) const {
41 return b;
42 }
43
44 std::string describe() const override {
45 using namespace std::string_literals;
46 return "Matches true"s;
47 }
48 };
49
50 constexpr MatchTrueMatcher MatchTrue() { return MatchTrueMatcher(); }
51

Callers 1

MatchTrueFunction · 0.85

Calls

no outgoing calls

Tested by 1

MatchTrueFunction · 0.68