1 | #ifndef BANDIT_FAILURE_FORMATTER_H |
---|---|
2 | #define BANDIT_FAILURE_FORMATTER_H |
3 | |
4 | #include <memory> |
5 | #include <bandit/assertion_exception.h> |
6 | |
7 | namespace bandit { |
8 | namespace detail { |
9 | struct failure_formatter { |
10 | virtual std::string format(const assertion_exception&) const = 0; |
11 | virtual ~failure_formatter() = default; |
12 | }; |
13 | |
14 | typedef std::unique_ptr<failure_formatter> failure_formatter_ptr; |
15 | } |
16 | } |
17 | #endif |
18 |