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

Function AssertPaths

cpp/src/arrow/filesystem/test_util.cc:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void AssertPaths(const std::vector<FileInfo>& infos,
70 const std::vector<std::string>& expected_paths) {
71 auto sorted_infos = infos;
72 SortInfos(&sorted_infos);
73 std::vector<std::string> paths(sorted_infos.size());
74 std::transform(sorted_infos.begin(), sorted_infos.end(), paths.begin(),
75 [&](const FileInfo& info) { return info.path(); });
76
77 ASSERT_EQ(paths, expected_paths);
78}
79
80void AssertAllDirs(FileSystem* fs, const std::vector<std::string>& expected_paths) {
81 AssertPaths(GetAllDirs(fs), expected_paths);

Callers 2

AssertAllDirsFunction · 0.85
AssertAllFilesFunction · 0.85

Calls 5

SortInfosFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected