@@ -309,7 +309,7 @@ def generate_and_instrument_tests(
309309 revert_to_print = bool (get_pr_number ()),
310310 ):
311311 generated_results = self .generate_tests_and_optimizations (
312- testgen_context_code = code_context .testgen_context_code ,
312+ testgen_context = code_context .testgen_context ,
313313 read_writable_code = code_context .read_writable_code ,
314314 read_only_context_code = code_context .read_only_context_code ,
315315 helper_functions = code_context .helper_functions ,
@@ -345,7 +345,6 @@ def generate_and_instrument_tests(
345345 logger .info (f"Generated test { i + 1 } /{ count_tests } :" )
346346 code_print (generated_test .generated_original_test_source , file_name = f"test_{ i + 1 } .py" )
347347 if concolic_test_str :
348- # no concolic tests in lsp mode
349348 logger .info (f"Generated test { count_tests } /{ count_tests } :" )
350349 code_print (concolic_test_str )
351350
@@ -946,7 +945,7 @@ def get_code_optimization_context(self) -> Result[CodeOptimizationContext, str]:
946945
947946 return Success (
948947 CodeOptimizationContext (
949- testgen_context_code = new_code_ctx .testgen_context_code ,
948+ testgen_context = new_code_ctx .testgen_context ,
950949 read_writable_code = new_code_ctx .read_writable_code ,
951950 read_only_context_code = new_code_ctx .read_only_context_code ,
952951 hashing_code_context = new_code_ctx .hashing_code_context ,
@@ -1053,7 +1052,7 @@ def instrument_existing_tests(self, function_to_all_tests: dict[str, set[Functio
10531052
10541053 def generate_tests_and_optimizations (
10551054 self ,
1056- testgen_context_code : str ,
1055+ testgen_context : CodeStringsMarkdown ,
10571056 read_writable_code : CodeStringsMarkdown ,
10581057 read_only_context_code : str ,
10591058 helper_functions : list [FunctionSource ],
@@ -1067,7 +1066,7 @@ def generate_tests_and_optimizations(
10671066 # Submit the test generation task as future
10681067 future_tests = self .submit_test_generation_tasks (
10691068 self .executor ,
1070- testgen_context_code ,
1069+ testgen_context . markdown ,
10711070 [definition .fully_qualified_name for definition in helper_functions ],
10721071 generated_test_paths ,
10731072 generated_perf_test_paths ,
0 commit comments