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

Function TEST_F

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

Source from the content-addressed store, hash-verified

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