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

Method FileStream

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

Source from the content-addressed store, hash-verified

4599 std::ofstream m_ofs;
4600 public:
4601 FileStream( std::string const& filename ) {
4602 m_ofs.open( filename.c_str() );
4603 CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << '\'' );
4604 m_ofs << std::unitbuf;
4605 }
4606 public: // IStream
4607 std::ostream& stream() override {
4608 return m_ofs;

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected