1111from mutahunter .core .db import MutationDatabase
1212from mutahunter .core .entities .config import MutationTestControllerConfig
1313from mutahunter .core .error_parser import extract_error_message
14- from mutahunter .core .exceptions import (CoverageAnalysisError ,
15- MutantKilledError , MutantSurvivedError ,
16- MutationTestingError ,
17- ReportGenerationError ,
18- UnexpectedTestResultError )
14+ from mutahunter .core .exceptions import (
15+ CoverageAnalysisError ,
16+ MutantKilledError ,
17+ MutantSurvivedError ,
18+ MutationTestingError ,
19+ ReportGenerationError ,
20+ UnexpectedTestResultError ,
21+ )
1922from mutahunter .core .git_handler import GitHandler
2023from mutahunter .core .io import FileOperationHandler
2124from mutahunter .core .llm_mutation_engine import LLMMutationEngine
@@ -93,7 +96,9 @@ def run_mutation_testing_all(self) -> None:
9396 all_covered_files = self .coverage_processor .file_lines_executed .keys ()
9497 for covered_file_path in tqdm (all_covered_files ):
9598 if FileOperationHandler .should_skip_file (
96- covered_file_path , self .config .exclude_files
99+ covered_file_path ,
100+ exclude_files = self .config .exclude_files ,
101+ only_mutate_file_paths = self .config .only_mutate_file_paths ,
97102 ):
98103 continue
99104 executed_lines = self .coverage_processor .file_lines_executed [
@@ -114,7 +119,9 @@ def run_mutation_testing_diff(self) -> None:
114119 )
115120 for file_path in tqdm (modified_files ):
116121 if FileOperationHandler .should_skip_file (
117- file_path , self .config .exclude_files
122+ file_path ,
123+ exclude_files = self .config .exclude_files ,
124+ only_mutate_file_paths = self .config .only_mutate_file_paths ,
118125 ):
119126 continue
120127 modified_lines = GitHandler .get_modified_lines (file_path )
0 commit comments