MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / FileStream

Method FileStream

deps/Catch/catch.hpp:13595–13598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13593 mutable std::ofstream m_ofs;
13594 public:
13595 FileStream( StringRef filename ) {
13596 m_ofs.open( filename.c_str() );
13597 CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << "'" );
13598 }
13599 ~FileStream() override = default;
13600 public: // IStream
13601 std::ostream& stream() const override {

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
openMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected