logic: add contained symlinked directories to indexed and excluded paths
This commit is contained in:
@@ -109,6 +109,18 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_find_symlinked_directories()
|
||||
{
|
||||
#ifndef _WIN32
|
||||
std::vector<FilePath> directoryPaths;
|
||||
directoryPaths.push_back(FilePath("./data/FileSystemTestSuite/src"));
|
||||
|
||||
std::set<FilePath> dirs = FileSystem::getSymLinkedDirectories(directoryPaths);
|
||||
|
||||
TS_ASSERT_EQUALS(dirs.size(), 2);
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_filesystem_finds_existing_files()
|
||||
{
|
||||
TS_ASSERT(FileSystem::exists(FilePath("data/FileSystemTestSuite")));
|
||||
@@ -145,6 +157,11 @@ private:
|
||||
return std::end(files) != std::find(std::begin(files), std::end(files), filename);
|
||||
}
|
||||
|
||||
bool isInFiles(const std::set<FilePath>& files, const FilePath& filename)
|
||||
{
|
||||
return std::end(files) != files.find(filename);
|
||||
}
|
||||
|
||||
bool isInFileInfos(const std::vector<FileInfo>& infos, const std::string filename)
|
||||
{
|
||||
for (const FileInfo& info : infos)
|
||||
|
||||
Reference in New Issue
Block a user