MCPcopy Create free account
hub / github.com/apache/arrow / TestOpenOutputStreamDestructor

Method TestOpenOutputStreamDestructor

cpp/src/arrow/filesystem/s3fs_test.cc:722–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720 }
721
722 void TestOpenOutputStreamDestructor() {
723 std::shared_ptr<io::OutputStream> stream;
724 ASSERT_OK_AND_ASSIGN(stream, fs_->OpenOutputStream("bucket/somefile"));
725 ASSERT_OK(stream->Write("new data"));
726 // Destructor implicitly closes stream and completes the multipart upload.
727 stream.reset();
728 AssertObjectContents(client_.get(), "bucket", "somefile", "new data");
729 }
730
731 void TestOpenOutputStreamCloseAsyncDestructor() {
732 std::shared_ptr<io::OutputStream> stream;

Callers

nothing calls this directly

Calls 6

AssertObjectContentsFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
OpenOutputStreamMethod · 0.45
WriteMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected