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

Function TestOpenOutputStreamDestructor

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

Source from the content-addressed store, hash-verified

843 }
844
845 void TestOpenOutputStreamDestructor() {
846 std::shared_ptr<io::OutputStream> stream;
847 ASSERT_OK_AND_ASSIGN(stream, fs_->OpenOutputStream("bucket/somefile"));
848 ASSERT_OK(stream->Write("new data"));
849 // Destructor implicitly closes stream and completes the multipart upload.
850 stream.reset();
851 AssertObjectContents(client_.get(), "bucket", "somefile", "new data");
852 }
853
854 void TestOpenOutputStreamCloseAsyncDestructor() {
855 std::shared_ptr<io::OutputStream> stream;

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

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