Manager: Rename filter() -> match()

The function returns true on a pattern match, so reflect this in the
name.
This commit is contained in:
Riyyi
2022-03-08 00:06:01 +01:00
parent 37be9506c8
commit 3b4ea3f42d
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ void testDotfileFilters(const std::unordered_map<std::string, bool>& tests,
createTestDotfiles(fileNames, fileContents);
for (const auto& path : fileNames) {
bool result = Dotfile::the().filter(std::filesystem::directory_entry { "/" + path }, testIgnorePatterns);
bool result = Dotfile::the().match(std::filesystem::directory_entry { "/" + path }, testIgnorePatterns);
EXPECT_EQ(result, tests.at(path), printf(" path = '%s'\n", path.c_str()));
}