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

Function MakeForest

cpp/src/arrow/dataset/subtree_test.cc:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Forest MakeForest(std::vector<FileInfo>* infos) {
120 std::sort(infos->begin(), infos->end(), FileInfo::ByPath);
121
122 return Forest(static_cast<int>(infos->size()), [&](int i, int j) {
123 return IsAncestorOf(infos->at(i).path, infos->at(j).path);
124 });
125}
126
127void ExpectForestIs(std::vector<FileInfo> infos, std::vector<PT> expected_roots) {
128 auto forest = MakeForest(&infos);

Callers 2

ExpectForestIsFunction · 0.85
TESTFunction · 0.85

Calls 5

ForestClass · 0.85
IsAncestorOfFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected