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

Method CoutStream

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

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

Source from the content-addressed store, hash-verified

4617 // Store the streambuf from cout up-front because
4618 // cout may get redirected when running tests
4619 CoutStream() : m_os( Catch::cout().rdbuf() ) {}
4620
4621 public: // IStream
4622 std::ostream& stream() override { return m_os; }

Callers

nothing calls this directly

Calls 1

rdbufMethod · 0.80

Tested by

no test coverage detected