| 11001 | /////////////////////////////////////////////////////////////////////////// |
| 11002 | |
| 11003 | class CoutStream : public IStream { |
| 11004 | mutable std::ostream m_os; |
| 11005 | public: |
| 11006 | // Store the streambuf from cout up-front because |
| 11007 | // cout may get redirected when running tests |
| 11008 | CoutStream() : m_os( Catch::cout().rdbuf() ) {} |
| 11009 | ~CoutStream() override = default; |
| 11010 | |
| 11011 | public: // IStream |
| 11012 | std::ostream& stream() const override { return m_os; } |
| 11013 | }; |
| 11014 | |
| 11015 | /////////////////////////////////////////////////////////////////////////// |
| 11016 |
nothing calls this directly
no outgoing calls
no test coverage detected