11
11
from mutahunter .core .db import MutationDatabase
12
12
from mutahunter .core .entities .config import MutationTestControllerConfig
13
13
from 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
+ )
19
22
from mutahunter .core .git_handler import GitHandler
20
23
from mutahunter .core .io import FileOperationHandler
21
24
from mutahunter .core .llm_mutation_engine import LLMMutationEngine
@@ -93,7 +96,9 @@ def run_mutation_testing_all(self) -> None:
93
96
all_covered_files = self .coverage_processor .file_lines_executed .keys ()
94
97
for covered_file_path in tqdm (all_covered_files ):
95
98
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 ,
97
102
):
98
103
continue
99
104
executed_lines = self .coverage_processor .file_lines_executed [
@@ -114,7 +119,9 @@ def run_mutation_testing_diff(self) -> None:
114
119
)
115
120
for file_path in tqdm (modified_files ):
116
121
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 ,
118
125
):
119
126
continue
120
127
modified_lines = GitHandler .get_modified_lines (file_path )
0 commit comments