Manager: Change match() path argument type

Changed the path argument from directory_iterator to string, as nothing
in this function relied on the functionality.
This commit is contained in:
Riyyi
2022-03-08 00:18:04 +01:00
parent f4fe44ad02
commit 4cac25b5b3
3 changed files with 12 additions and 14 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().match(std::filesystem::directory_entry { "/" + path }, testIgnorePatterns);
bool result = Dotfile::the().match("/" + path, testIgnorePatterns);
EXPECT_EQ(result, tests.at(path), printf(" path = '%s'\n", path.c_str()));
}