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

Function TestOpenOutputStreamAbort

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

Source from the content-addressed store, hash-verified

833 }
834
835 void TestOpenOutputStreamAbort() {
836 std::shared_ptr<io::OutputStream> stream;
837 ASSERT_OK_AND_ASSIGN(stream, fs_->OpenOutputStream("bucket/somefile"));
838 ASSERT_OK(stream->Write("new data"));
839 // Abort() cancels the multipart upload.
840 ASSERT_OK(stream->Abort());
841 ASSERT_EQ(stream->closed(), true);
842 AssertObjectContents(client_.get(), "bucket", "somefile", "some data");
843 }
844
845 void TestOpenOutputStreamDestructor() {
846 std::shared_ptr<io::OutputStream> stream;

Callers 1

TEST_FFunction · 0.85

Calls 7

AssertObjectContentsFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
OpenOutputStreamMethod · 0.45
WriteMethod · 0.45
AbortMethod · 0.45
closedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected