Refactoring: Remove names of methods moved to Project:

* search_files_for_pattern -> search_source_files_for_patterh
  * request_parsed_files -> gather_source_files
This commit is contained in:
Dominik Jain
2025-07-09 22:42:20 +02:00
committed by Dominik Jain
parent c4d89f21e7
commit 75436727d0
5 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ class TestLanguageServerBasics:
class TestProjectBasics:
@pytest.mark.parametrize("project", [Language.CLOJURE], indirect=True)
def test_search_files_for_pattern(self, project: Project) -> None:
result = project.search_files_for_pattern("defn.*greet")
result = project.search_source_files_for_pattern("defn.*greet")
assert result is not None, "Pattern search should return results"
assert len(result) > 0, "Should find at least one match for 'defn.*greet'"
@@ -212,7 +212,7 @@ class TestProjectBasics:
core_matches = [match for match in result if match.source_file_path and "core.clj" in match.source_file_path]
assert len(core_matches) > 0, "Should find greet function in core.clj"
result = project.search_files_for_pattern(":require")
result = project.search_source_files_for_pattern(":require")
assert result is not None, "Should find require statements"
utils_matches = [match for match in result if match.source_file_path and "utils.clj" in match.source_file_path]