Skip to content

Commit 2a83013

Browse files
aseembits93Codeflash Bot
authored andcommitted
need to write some tests
1 parent 26f5268 commit 2a83013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ def process_review(
14041404
map_gen_test_file_to_no_of_tests = Counter()
14051405
for gen_test_result in original_code_baseline.behavior_test_results:
14061406
if (
1407-
"__unit_test_" in gen_test_result.file_name
1407+
"__unit_test_" in str(gen_test_result.file_name)
14081408
and gen_test_result.id.test_function_name not in test_functions_to_remove
14091409
):
14101410
map_gen_test_file_to_no_of_tests[gen_test_result.file_name] += 1
@@ -1541,7 +1541,7 @@ def process_review(
15411541
trace_id=self.function_trace_id, is_optimization_found=best_optimization is not None
15421542
)
15431543

1544-
# If worktree mode, do not revert code and helpers,, otherwise we would have an empty diff when writing the patch in the lsp
1544+
# If worktree mode, do not revert code and helpers, otherwise we would have an empty diff when writing the patch in the lsp
15451545
if self.args.worktree:
15461546
return
15471547

0 commit comments

Comments
 (0)