ARROW-14912: [C++] implement GcsFileSystem::CopyFile#11797
ARROW-14912: [C++] implement GcsFileSystem::CopyFile#11797coryan wants to merge 2 commits intoapache:masterfrom coryan:ARROW-14912-implement-gcs-file-system-copy-file
Conversation
|
The |
pitrou
left a comment
There was a problem hiding this comment.
Thank you for doing this. LGTM, just a suggestion.
| auto fs = internal::MakeGcsFileSystemForTest(TestGcsOptions()); | ||
| const auto destination_path = kPreexistingBucket + std::string("/copy-destination"); | ||
| const auto status = fs->CopyFile(NotFoundObjectPath(), destination_path); | ||
| EXPECT_EQ(status.code(), StatusCode::IOError); |
There was a problem hiding this comment.
Nit: this can be shortened to:
ASSERT_RAISES(IOError, fs->CopyFile(NotFoundObjectPath(), destination_path));If the error message is predictable enough, you could also test for it using e.g.:
EXPECT_RAISES_WITH_MESSAGE_THAT(IOError, ::testing::HasSubstr("xxx"),
fs->CopyFile(NotFoundObjectPath(), destination_path));|
Benchmark runs are scheduled for baseline = 8daa7a4 and contender = 996a08b. 996a08b is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
No description provided.