MCPcopy Create free account
hub / github.com/catchorg/Catch2 / CerrStream

Method CerrStream

extras/catch_amalgamated.cpp:4632–4632  ·  view source on GitHub ↗

Store the streambuf from cerr up-front because cout may get redirected when running tests

Source from the content-addressed store, hash-verified

4630 // Store the streambuf from cerr up-front because
4631 // cout may get redirected when running tests
4632 CerrStream(): m_os( Catch::cerr().rdbuf() ) {}
4633
4634 public: // IStream
4635 std::ostream& stream() override { return m_os; }

Callers

nothing calls this directly

Calls 1

rdbufMethod · 0.80

Tested by

no test coverage detected