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

Function GetSortedInfos

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

Source from the content-addressed store, hash-verified

98}
99
100void GetSortedInfos(FileSystem* fs, FileSelector s, std::vector<FileInfo>& infos) {
101 ASSERT_OK_AND_ASSIGN(infos, fs->GetFileInfo(s));
102 // Clear mtime & size for easier testing.
103 for_each(infos.begin(), infos.end(), [](FileInfo& info) {
104 info.set_mtime(kNoTime);
105 info.set_size(kNoSize);
106 });
107 SortInfos(&infos);
108}
109
110}; // namespace
111

Calls 5

SortInfosFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
GetFileInfoMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected