We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc678ba + 7b2692f commit 8cb7209Copy full SHA for 8cb7209
1 file changed
codeflash/optimization/function_optimizer.py
@@ -2077,7 +2077,10 @@ def process_review(
2077
generated_tests_str = ""
2078
code_lang = self.function_to_optimize.language
2079
for test in generated_tests.generated_tests:
2080
- if map_gen_test_file_to_no_of_tests[test.behavior_file_path] > 0:
+ if any(
2081
+ test_file.name == test.behavior_file_path.name and count > 0
2082
+ for test_file, count in map_gen_test_file_to_no_of_tests.items()
2083
+ ):
2084
formatted_generated_test = format_generated_code(
2085
test.generated_original_test_source, self.args.formatter_cmds
2086
)
0 commit comments