Manager: Add new pattern logic to pulling/pushing targets
This commit is contained in:
@@ -93,16 +93,11 @@ void testDotfileFilters(const std::unordered_map<std::string, bool>& tests,
|
||||
|
||||
createTestDotfiles(fileNames, fileContents);
|
||||
|
||||
auto ignorePatterns = Config::the().ignorePatterns();
|
||||
Config::the().setIgnorePatterns(testIgnorePatterns);
|
||||
|
||||
for (const auto& path : fileNames) {
|
||||
bool result = Dotfile::the().filter(std::filesystem::directory_entry { "/" + path });
|
||||
bool result = Dotfile::the().filter(std::filesystem::directory_entry { "/" + path }, testIgnorePatterns);
|
||||
EXPECT_EQ(result, tests.at(path), printf(" path = '%s'\n", path.c_str()));
|
||||
}
|
||||
|
||||
Config::the().setIgnorePatterns(ignorePatterns);
|
||||
|
||||
removeTestDotfiles(fileNames, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user