File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 88import subprocess
99import time
1010import uuid
11- from collections import defaultdict
11+ from collections import Counter , defaultdict
1212from pathlib import Path
1313from typing import TYPE_CHECKING
1414
@@ -1401,6 +1401,13 @@ def process_review(
14011401 generated_tests = remove_functions_from_generated_tests (
14021402 generated_tests = generated_tests , test_functions_to_remove = test_functions_to_remove
14031403 )
1404+ map_gen_test_file_to_no_of_tests = Counter ()
1405+ for gen_test_result in original_code_baseline .behavior_test_results :
1406+ if (
1407+ "__unit_test_" in gen_test_result .file_name
1408+ and gen_test_result .id .test_function_name not in test_functions_to_remove
1409+ ):
1410+ map_gen_test_file_to_no_of_tests [gen_test_result .file_name ] += 1
14041411
14051412 original_runtime_by_test = original_code_baseline .benchmarking_test_results .usable_runtime_data_by_test_case ()
14061413 optimized_runtime_by_test = (
You can’t perform that action at this time.
0 commit comments