MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / FileStream

Method FileStream

test/expected/catch.hpp:13475–13478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13473 mutable std::ofstream m_ofs;
13474 public:
13475 FileStream( StringRef filename ) {
13476 m_ofs.open( filename.c_str() );
13477 CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << "'" );
13478 }
13479 ~FileStream() override = default;
13480 public: // IStream
13481 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