MCPcopy Create free account
hub / github.com/apache/trafficserver / FileStream

Method FileStream

lib/catch2/catch.hpp:13694–13697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13692 mutable std::ofstream m_ofs;
13693 public:
13694 FileStream( StringRef filename ) {
13695 m_ofs.open( filename.c_str() );
13696 CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << "'" );
13697 }
13698 ~FileStream() override = default;
13699 public: // IStream
13700 std::ostream& stream() const override {

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
c_strMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected