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

Function TEST_F

cpp/src/arrow/filesystem/gcsfs_test.cc:710–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710TEST_F(GcsIntegrationTest, GetFileInfoObjectNoExplicitObject) {
711 ASSERT_OK_AND_ASSIGN(auto fs, GcsFileSystem::Make(TestGcsOptions()));
712 auto object =
713 GcsClient().GetObjectMetadata(PreexistingBucketName(), PreexistingObjectName());
714 ASSERT_TRUE(object.ok()) << "status=" << object.status();
715 arrow::fs::AssertFileInfo(fs.get(), PreexistingObjectPath(), FileType::File,
716 object->time_created(), static_cast<int64_t>(object->size()));
717
718 // URI
719 ASSERT_RAISES(Invalid, fs->GetFileInfo("gs://" + PreexistingObjectName()));
720}
721
722TEST_F(GcsIntegrationTest, GetFileInfoSelectorRecursive) {
723 ASSERT_OK_AND_ASSIGN(auto fs, GcsFileSystem::Make(TestGcsOptions()));

Callers 1

TESTFunction · 0.70

Calls 15

AssertFileInfoFunction · 0.85
GetAbstractPathParentFunction · 0.85
to_stringFunction · 0.85
DepthFunction · 0.85
EnsureTrailingSlashFunction · 0.85
ConcatAbstractPathFunction · 0.85
CreateFileFunction · 0.85
key_value_metadataFunction · 0.85
GetObjectMetadataMethod · 0.80
content_typeMethod · 0.80
substrMethod · 0.80
IsAncestorOfFunction · 0.70

Tested by

no test coverage detected