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

Function AssertInfoAllBucketsRecursive

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

Source from the content-addressed store, hash-verified

745 }
746
747 void AssertInfoAllBucketsRecursive(const std::vector<FileInfo>& infos) {
748 AssertFileInfo(infos[0], "bucket", FileType::Directory);
749 AssertFileInfo(infos[1], "bucket/emptydir", FileType::Directory);
750 AssertFileInfo(infos[2], "bucket/otherdir", FileType::Directory);
751 AssertFileInfo(infos[3], "bucket/otherdir/1", FileType::Directory);
752 AssertFileInfo(infos[4], "bucket/otherdir/1/2", FileType::Directory);
753 AssertFileInfo(infos[5], "bucket/otherdir/1/2/3", FileType::Directory);
754 AssertFileInfo(infos[6], "bucket/otherdir/1/2/3/otherfile", FileType::File, 10);
755 AssertFileInfo(infos[7], "bucket/somedir", FileType::Directory);
756 AssertFileInfo(infos[8], "bucket/somedir/subdir", FileType::Directory);
757 AssertFileInfo(infos[9], "bucket/somedir/subdir/subfile", FileType::File, 8);
758 AssertFileInfo(infos[10], "bucket/somefile", FileType::File, 9);
759 AssertFileInfo(infos[11], "empty-bucket", FileType::Directory);
760 }
761
762 void TestOpenOutputStream(bool allow_delayed_open) {
763 std::shared_ptr<io::OutputStream> stream;

Callers 1

TEST_FFunction · 0.85

Calls 1

AssertFileInfoFunction · 0.85

Tested by

no test coverage detected