99import logging
1010from typing import TYPE_CHECKING , Any
1111
12- from codeflash .languages .base import Language , LanguageSupport
12+ from codeflash .languages .base import LanguageSupport
13+ from codeflash .languages .language_enum import Language
1314from codeflash .languages .java .build_tools import find_test_root
1415from codeflash .languages .java .comparator import compare_test_results as _compare_test_results
1516from codeflash .languages .java .concurrency_analyzer import analyze_function_concurrency
@@ -344,6 +345,8 @@ def add_runtime_comments_to_generated_tests(
344345 def _build_runtime_map (self , inv_id_runtimes : dict [InvocationId , list [int ]]) -> dict [str , int ]:
345346 unique_inv_ids : dict [str , int ] = {}
346347 for inv_id , runtimes in inv_id_runtimes .items ():
348+ if not inv_id .test_function_name :
349+ continue
347350 test_qualified_name = (
348351 inv_id .test_class_name + "." + inv_id .test_function_name
349352 if inv_id .test_class_name
@@ -370,6 +373,33 @@ def compare_test_results(
370373 """Compare test results between original and candidate code."""
371374 return _compare_test_results (original_results_path , candidate_results_path , project_root = project_root )
372375
376+ # === Reference Finding ===
377+
378+ def find_references (
379+ self ,
380+ function : FunctionToOptimize ,
381+ project_root : Path ,
382+ tests_root : Path | None = None ,
383+ max_files : int = 500 ,
384+ ) -> list [Any ]:
385+ return []
386+
387+ def extract_calling_function_source (self , source_code : str , function_name : str , ref_line : int ) -> str | None :
388+ return None
389+
390+ def load_coverage (
391+ self ,
392+ coverage_database_file : Path ,
393+ function_name : str ,
394+ code_context : Any ,
395+ source_file : Path ,
396+ coverage_config_file : Path | None = None ,
397+ ) -> None :
398+ return None
399+
400+ def setup_test_config (self , test_cfg : Any , file_path : Path ) -> None :
401+ return None
402+
373403 # === Configuration ===
374404
375405 def adjust_test_config_for_discovery (self , test_cfg : Any ) -> None :
0 commit comments