1 #ifndef cetlib_exception_message_matcher_h 2 #define cetlib_exception_message_matcher_h 15 #include "cetlib_except/exception.h" 16 #include <catch/catch.hpp> 22 class exception_message_matcher;
26 :
public Catch::MatcherBase<cet::exception> {
29 Catch::Matchers::StdString::EqualsMatcher
const& matcher)
30 :
matcher_{std::make_shared<Catch::Matchers::StdString::EqualsMatcher>(
36 Catch::Matchers::StdString::ContainsMatcher
const& matcher)
37 :
matcher_{std::make_shared<Catch::Matchers::StdString::ContainsMatcher>(
43 Catch::Matchers::StdString::StartsWithMatcher
const& matcher)
44 :
matcher_{std::make_shared<Catch::Matchers::StdString::StartsWithMatcher>(
50 Catch::Matchers::StdString::EndsWithMatcher
const& matcher)
51 :
matcher_{std::make_shared<Catch::Matchers::StdString::EndsWithMatcher>(
57 Catch::Matchers::StdString::RegexMatcher
const& matcher)
58 :
matcher_{std::make_shared<Catch::Matchers::StdString::RegexMatcher>(
76 std::shared_ptr<Catch::StringMatcher>
matcher_;
std::shared_ptr< Catch::StringMatcher > matcher_
::xsd::cxx::tree::exception< char > exception
exception_message_matcher(Catch::Matchers::StdString::ContainsMatcher const &matcher)
exception_message_matcher(Catch::Matchers::StdString::RegexMatcher const &matcher)
std::string describe() const override
exception_message_matcher(Catch::Matchers::StdString::EndsWithMatcher const &matcher)
bool match(cet::exception const &e) const override
exception_message_matcher(Catch::Matchers::StdString::StartsWithMatcher const &matcher)
exception_message_matcher(Catch::Matchers::StdString::EqualsMatcher const &matcher)