14 : expected{std::move(expected)}
21 const std::string what = exception.
what();
22 return what.find(
expected) != std::string::npos;
27 return std::string{
"invariant_failedt with `.what' containing - \""} +
34 out <<
"invariant_failedt where `.what()' is \"" << invariant_failed.
what()
A logic error, augmented with a distinguished field to hold a backtrace.
virtual std::string what() const noexcept
bool match(const invariant_failedt &exception) const override
invariant_failure_containingt(std::string expected)
std::string describe() const override
std::ostream & operator<<(std::ostream &out, const invariant_failedt &invariant_failed)
Printing of invariant_failedt for test failure messages.
invariant_failure_containingt invariant_failure_containing(std::string expected)
Author: Diffblue Ltd.