16 : expected{std::move(expected)}
23 const std::string what = exception.
what();
24 return what.find(
expected) != std::string::npos;
29 return std::string{
"invariant_failedt with `.what' containing - \""} +
36 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.