1616from coordinator.dependency_graph import DependencyGraph
1717
1818
19- class TestResults :
19+ class ResultsTracker :
2020 """Track test results."""
2121 def __init__(self):
2222 self.passed = 0
@@ -120,7 +120,7 @@ def broken(
120120 return temp_dir
121121
122122
123- def test_import_parsing(results: TestResults , test_dir: Path):
123+ def test_import_parsing(results: ResultsTracker , test_dir: Path):
124124 """Test 1: Import Parsing - various import styles."""
125125 print("\n=== Test 1: Import Parsing ===")
126126
@@ -147,7 +147,7 @@ def test_import_parsing(results: TestResults, test_dir: Path):
147147 results.pass_test("Nested module imports")
148148
149149
150- def test_graph_building(results: TestResults , test_dir: Path):
150+ def test_graph_building(results: ResultsTracker , test_dir: Path):
151151 """Test 2: Graph Building - forward and reverse graphs."""
152152 print("\n=== Test 2: Graph Building ===")
153153
@@ -168,7 +168,7 @@ def test_graph_building(results: TestResults, test_dir: Path):
168168 results.pass_test("Reverse graph correctly tracks dependents")
169169
170170
171- def test_cluster_generation(results: TestResults , test_dir: Path):
171+ def test_cluster_generation(results: ResultsTracker , test_dir: Path):
172172 """Test 3: Cluster Generation - depth 1 and 2."""
173173 print("\n=== Test 3: Cluster Generation ===")
174174
@@ -197,7 +197,7 @@ def test_cluster_generation(results: TestResults, test_dir: Path):
197197 results.pass_test("Cluster includes dependents")
198198
199199
200- def test_chain_suggestion(results: TestResults , test_dir: Path):
200+ def test_chain_suggestion(results: ResultsTracker , test_dir: Path):
201201 """Test 4: Chain Suggestion - single and multiple files."""
202202 print("\n=== Test 4: Chain Suggestion ===")
203203
@@ -226,7 +226,7 @@ def test_chain_suggestion(results: TestResults, test_dir: Path):
226226 results.pass_test("Chain includes transitive dependencies")
227227
228228
229- def test_edge_cases(results: TestResults , test_dir: Path):
229+ def test_edge_cases(results: ResultsTracker , test_dir: Path):
230230 """Test 5: Edge Cases - no imports, circular imports, errors."""
231231 print("\n=== Test 5: Edge Cases ===")
232232
@@ -265,7 +265,7 @@ def test_edge_cases(results: TestResults, test_dir: Path):
265265 results.pass_test("Syntax error file handled gracefully (excluded)")
266266
267267
268- def test_elf_codebase(results: TestResults ):
268+ def test_elf_codebase(results: ResultsTracker ):
269269 """Test 6: ELF Codebase - scan the actual ELF framework."""
270270 print("\n=== Test 6: ELF Codebase Analysis ===")
271271
@@ -308,10 +308,8 @@ def test_elf_codebase(results: TestResults):
308308 if max_dependents_file[0]:
309309 print(f" Most dependents: {max_dependents_file[0]} ({len(max_dependents_file[1])} dependents)")
310310
311- return stats
312311
313-
314- def test_query_before_scan(results: TestResults, test_dir: Path):
312+ def test_query_before_scan(results: ResultsTracker, test_dir: Path):
315313 """Test 7: Error handling - query before scan."""
316314 print("\n=== Test 7: Error Handling ===")
317315
@@ -338,7 +336,7 @@ def main():
338336 print("Dependency Graph Comprehensive Test Suite")
339337 print("="*60)
340338
341- results = TestResults ()
339+ results = ResultsTracker ()
342340 test_dir = None
343341
344342 try:
@@ -356,14 +354,11 @@ def main():
356354 test_edge_cases(results, test_dir)
357355
358356 # Test real ELF codebase
359- elf_stats = test_elf_codebase(results)
357+ test_elf_codebase(results)
360358
361359 # Print summary
362360 results.summary()
363361
364- # Return stats
365- return elf_stats
366-
367362 finally:
368363 # Cleanup
369364 if test_dir and test_dir.exists():
0 commit comments