| 1 |
"""Resolve configuration options and build PoodleConfig object.""" |
|
| 2 | ||
| 3 |
from __future__ import annotations |
|
| 4 | ||
| 5 |
import logging |
|
| 6 |
import os |
|
| 7 |
from collections.abc import Iterable |
|
| 8 |
from pathlib import Path |
|
| 9 |
from typing import Any |
|
| 10 | ||
| 11 |
from wcmatch import glob |
|
| 12 | ||
| 13 |
from . import PoodleInputError, poodle_config, tomllib |
|
| 14 |
from .data_types import PoodleConfig |
|
| 15 | ||
| ▸ | 16 |
default_source_folders = [Path("src"), Path("lib")]
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:16
@@ -13,7 +13,7 @@
from . import PoodleInputError, poodle_config, tomllib
from .data_types import PoodleConfig
-default_source_folders = [Path("src"), Path("lib")]
+default_source_folders = [Path('XXsrcXX'), Path("lib")]
default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s"
default_log_level = logging.WARN
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:16
@@ -13,7 +13,7 @@
from . import PoodleInputError, poodle_config, tomllib
from .data_types import PoodleConfig
-default_source_folders = [Path("src"), Path("lib")]
+default_source_folders = [Path("src"), Path('XXlibXX')]
default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s"
default_log_level = logging.WARN
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:16
@@ -13,7 +13,7 @@
from . import PoodleInputError, poodle_config, tomllib
from .data_types import PoodleConfig
-default_source_folders = [Path("src"), Path("lib")]
+default_source_folders = [None, Path("lib")]
default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s"
default_log_level = logging.WARN
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:16
@@ -13,7 +13,7 @@
from . import PoodleInputError, poodle_config, tomllib
from .data_types import PoodleConfig
-default_source_folders = [Path("src"), Path("lib")]
+default_source_folders = [Path("src"), None]
default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s"
default_log_level = logging.WARN
|
||
| 17 | ||
| ▸ | 18 |
default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:18
@@ -15,7 +15,7 @@
default_source_folders = [Path("src"), Path("lib")]
-default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s"
+default_log_format = 'XX%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)sXX'
default_log_level = logging.WARN
default_file_flags = glob.GLOBSTAR | glob.NODIR
|
||
| 19 |
default_log_level = logging.WARN |
|
| 20 | ||
| ▸ | 21 |
default_file_flags = glob.GLOBSTAR | glob.NODIR |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py +++ [Mutant] src\poodle\config.py:21 @@ -18,7 +18,7 @@ default_log_format = "%(levelname)s [%(process)d] %(name)s.%(funcName)s:%(lineno)d - %(message)s" default_log_level = logging.WARN -default_file_flags = glob.GLOBSTAR | glob.NODIR +default_file_flags = glob.GLOBSTAR & glob.NODIR default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"] default_file_copy_flags = glob.GLOBSTAR | glob.NODIR default_file_copy_filters = ["__pycache__/**"] |
||
| ▸ | 22 |
default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"] |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:22
@@ -19,7 +19,7 @@
default_log_level = logging.WARN
default_file_flags = glob.GLOBSTAR | glob.NODIR
-default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
+default_file_filters = ['XXtest_*.pyXX', "*_test.py", "poodle_config.py", "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
default_work_folder = Path(".poodle-temp")
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:22
@@ -19,7 +19,7 @@
default_log_level = logging.WARN
default_file_flags = glob.GLOBSTAR | glob.NODIR
-default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
+default_file_filters = ["test_*.py", 'XX*_test.pyXX', "poodle_config.py", "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
default_work_folder = Path(".poodle-temp")
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:22
@@ -19,7 +19,7 @@
default_log_level = logging.WARN
default_file_flags = glob.GLOBSTAR | glob.NODIR
-default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
+default_file_filters = ["test_*.py", "*_test.py", 'XXpoodle_config.pyXX', "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
default_work_folder = Path(".poodle-temp")
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:22
@@ -19,7 +19,7 @@
default_log_level = logging.WARN
default_file_flags = glob.GLOBSTAR | glob.NODIR
-default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
+default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", 'XXsetup.pyXX']
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
default_work_folder = Path(".poodle-temp")
|
||
| ▸ | 23 |
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:23
@@ -20,7 +20,7 @@
default_file_flags = glob.GLOBSTAR | glob.NODIR
default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
-default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
+default_file_copy_flags = glob.GLOBSTAR & glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
default_work_folder = Path(".poodle-temp")
|
||
| ▸ | 24 |
default_file_copy_filters = ["__pycache__/**"] |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:24
@@ -21,7 +21,7 @@
default_file_flags = glob.GLOBSTAR | glob.NODIR
default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
-default_file_copy_filters = ["__pycache__/**"]
+default_file_copy_filters = ['XX__pycache__/**XX']
default_work_folder = Path(".poodle-temp")
default_mutator_opts: dict[str, Any] = {}
|
||
| ▸ | 25 |
default_work_folder = Path(".poodle-temp")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:25
@@ -22,7 +22,7 @@
default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
-default_work_folder = Path(".poodle-temp")
+default_work_folder = Path('XX.poodle-tempXX')
default_mutator_opts: dict[str, Any] = {}
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:25
@@ -22,7 +22,7 @@
default_file_filters = ["test_*.py", "*_test.py", "poodle_config.py", "setup.py"]
default_file_copy_flags = glob.GLOBSTAR | glob.NODIR
default_file_copy_filters = ["__pycache__/**"]
-default_work_folder = Path(".poodle-temp")
+default_work_folder = None
default_mutator_opts: dict[str, Any] = {}
|
||
| 26 | ||
| 27 |
default_mutator_opts: dict[str, Any] = {}
|
|
| 28 | ||
| ▸ | 29 |
default_min_timeout = 10 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:29
@@ -26,7 +26,7 @@
default_mutator_opts: dict[str, Any] = {}
-default_min_timeout = 10
+default_min_timeout = 11
default_timeout_multiplier = 10
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:29
@@ -26,7 +26,7 @@
default_mutator_opts: dict[str, Any] = {}
-default_min_timeout = 10
+default_min_timeout = 9
default_timeout_multiplier = 10
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
|
||
| ▸ | 30 |
default_timeout_multiplier = 10 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:30
@@ -27,7 +27,7 @@
default_mutator_opts: dict[str, Any] = {}
default_min_timeout = 10
-default_timeout_multiplier = 10
+default_timeout_multiplier = 11
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:30
@@ -27,7 +27,7 @@
default_mutator_opts: dict[str, Any] = {}
default_min_timeout = 10
-default_timeout_multiplier = 10
+default_timeout_multiplier = 9
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
|
||
| ▸ | 31 |
default_runner = "command_line" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:31
@@ -28,7 +28,7 @@
default_min_timeout = 10
default_timeout_multiplier = 10
-default_runner = "command_line"
+default_runner = 'XXcommand_lineXX'
default_runner_opts: dict[str, Any] = {}
default_reporters = ["summary", "not_found"]
|
||
| 32 |
default_runner_opts: dict[str, Any] = {}
|
|
| 33 | ||
| ▸ | 34 |
default_reporters = ["summary", "not_found"] |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:34
@@ -31,7 +31,7 @@
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
-default_reporters = ["summary", "not_found"]
+default_reporters = ['XXsummaryXX', "not_found"]
default_reporter_opts: dict[str, Any] = {}
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:34
@@ -31,7 +31,7 @@
default_runner = "command_line"
default_runner_opts: dict[str, Any] = {}
-default_reporters = ["summary", "not_found"]
+default_reporters = ["summary", 'XXnot_foundXX']
default_reporter_opts: dict[str, Any] = {}
|
||
| 35 |
default_reporter_opts: dict[str, Any] = {}
|
|
| 36 | ||
| 37 | ||
| 38 |
def default_max_workers() -> int: |
|
| 39 |
"""Calculate Default for max_workers as one less than available processors.""" |
|
| ▸ | 40 |
if hasattr(os, "sched_getaffinity"): |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:40
@@ -37,7 +37,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
- if hasattr(os, "sched_getaffinity"):
+ if hasattr(os, 'XXsched_getaffinityXX'):
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:40
@@ -37,7 +37,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
- if hasattr(os, "sched_getaffinity"):
+ if None:
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
|
||
| ▸ | 41 |
return len(os.sched_getaffinity(0)) - 1 |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(0)) + 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(0)) / 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(1)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(-1)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(0)) - 2
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return len(os.sched_getaffinity(0)) - 0
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return None - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:41
@@ -38,7 +38,7 @@
def default_max_workers() -> int:
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
- return len(os.sched_getaffinity(0)) - 1
+ return None
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
|
||
| ▸ | 42 |
cpu_count = os.cpu_count() or 1 # nomut: Number |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:42
@@ -39,7 +39,7 @@
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
- cpu_count = os.cpu_count() or 1 # nomut: Number
+ cpu_count = os.cpu_count() and 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
return cpu_count
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:42
@@ -39,7 +39,7 @@
"""Calculate Default for max_workers as one less than available processors."""
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
- cpu_count = os.cpu_count() or 1 # nomut: Number
+ cpu_count = None or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
return cpu_count
|
||
| ▸ | 43 |
if cpu_count > 1: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:43
@@ -40,7 +40,7 @@
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
- if cpu_count > 1:
+ if cpu_count <= 1:
return cpu_count - 1
return cpu_count
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:43
@@ -40,7 +40,7 @@
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
- if cpu_count > 1:
+ if cpu_count >= 1:
return cpu_count - 1
return cpu_count
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:43
@@ -40,7 +40,7 @@
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
- if cpu_count > 1:
+ if cpu_count > 2:
return cpu_count - 1
return cpu_count
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:43
@@ -40,7 +40,7 @@
if hasattr(os, "sched_getaffinity"):
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
- if cpu_count > 1:
+ if cpu_count > 0:
return cpu_count - 1
return cpu_count
|
||
| ▸ | 44 |
return cpu_count - 1 |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:44
@@ -41,7 +41,7 @@
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
- return cpu_count - 1
+ return cpu_count + 1
return cpu_count
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:44
@@ -41,7 +41,7 @@
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
- return cpu_count - 1
+ return cpu_count / 1
return cpu_count
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:44
@@ -41,7 +41,7 @@
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
- return cpu_count - 1
+ return cpu_count - 2
return cpu_count
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:44
@@ -41,7 +41,7 @@
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
- return cpu_count - 1
+ return cpu_count - 0
return cpu_count
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:44
@@ -41,7 +41,7 @@
return len(os.sched_getaffinity(0)) - 1
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
- return cpu_count - 1
+ return None
return cpu_count
|
||
| ▸ | 45 |
return cpu_count |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:45
@@ -42,7 +42,7 @@
cpu_count = os.cpu_count() or 1 # nomut: Number
if cpu_count > 1:
return cpu_count - 1
- return cpu_count
+ return None
def build_config( # noqa: PLR0913
|
||
| 46 | ||
| 47 | ||
| 48 |
def build_config( # noqa: PLR0913 |
|
| 49 |
cmd_sources: tuple[Path], |
|
| 50 |
cmd_config_file: Path | None, |
|
| 51 |
cmd_quiet: int, |
|
| 52 |
cmd_verbose: int, |
|
| 53 |
cmd_max_workers: int | None, |
|
| 54 |
cmd_excludes: tuple[str], |
|
| 55 |
cmd_only_files: tuple[str], |
|
| 56 |
cmd_report: tuple[str], |
|
| 57 |
) -> PoodleConfig: |
|
| 58 |
"""Build PoodleConfig object.""" |
|
| ▸ | 59 |
config_file_path = get_config_file_path(cmd_config_file) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:59
@@ -56,7 +56,7 @@
cmd_report: tuple[str],
) -> PoodleConfig:
"""Build PoodleConfig object."""
- config_file_path = get_config_file_path(cmd_config_file)
+ config_file_path = None
config_file_data = get_config_file_data(config_file_path)
project_name, project_version = get_project_info_toml(config_file_path)
|
||
| ▸ | 60 |
config_file_data = get_config_file_data(config_file_path) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:60
@@ -57,7 +57,7 @@
) -> PoodleConfig:
"""Build PoodleConfig object."""
config_file_path = get_config_file_path(cmd_config_file)
- config_file_data = get_config_file_data(config_file_path)
+ config_file_data = None
project_name, project_version = get_project_info_toml(config_file_path)
log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
|
||
| ▸ | 61 |
project_name, project_version = get_project_info_toml(config_file_path) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:61
@@ -58,7 +58,7 @@
"""Build PoodleConfig object."""
config_file_path = get_config_file_path(cmd_config_file)
config_file_data = get_config_file_data(config_file_path)
- project_name, project_version = get_project_info_toml(config_file_path)
+ project_name, project_version = None
log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
log_level: int | str = get_any_from_config(
|
||
| 62 | ||
| ▸ | 63 |
log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:63
@@ -60,7 +60,7 @@
config_file_data = get_config_file_data(config_file_path)
project_name, project_version = get_project_info_toml(config_file_path)
- log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
+ log_format = get_str_from_config('XXlog_formatXX', config_file_data, default=default_log_format)
log_level: int | str = get_any_from_config(
"log_level",
config_file_data,
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:63
@@ -60,7 +60,7 @@
config_file_data = get_config_file_data(config_file_path)
project_name, project_version = get_project_info_toml(config_file_path)
- log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
+ log_format = None
log_level: int | str = get_any_from_config(
"log_level",
config_file_data,
|
||
| ▸ | 64 |
log_level: int | str = get_any_from_config( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:64
@@ -61,12 +61,7 @@
project_name, project_version = get_project_info_toml(config_file_path)
log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
- log_level: int | str = get_any_from_config(
- "log_level",
- config_file_data,
- default=default_log_level,
- command_line=get_cmd_line_log_level(cmd_quiet, cmd_verbose),
- )
+ log_level: int | str = None
logging.basicConfig(format=log_format, level=log_level)
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
|
||
| ▸ | 65 |
"log_level", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:65
@@ -62,7 +62,7 @@
log_format = get_str_from_config("log_format", config_file_data, default=default_log_format)
log_level: int | str = get_any_from_config(
- "log_level",
+ 'XXlog_levelXX',
config_file_data,
default=default_log_level,
command_line=get_cmd_line_log_level(cmd_quiet, cmd_verbose),
|
||
| 66 |
config_file_data, |
|
| 67 |
default=default_log_level, |
|
| 68 |
command_line=get_cmd_line_log_level(cmd_quiet, cmd_verbose), |
|
| 69 |
) |
|
| ▸ | 70 |
logging.basicConfig(format=log_format, level=log_level) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:70
@@ -67,7 +67,7 @@
default=default_log_level,
command_line=get_cmd_line_log_level(cmd_quiet, cmd_verbose),
)
- logging.basicConfig(format=log_format, level=log_level)
+ None
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
# TODO: append file excludes and append py excludes
|
||
| 71 | ||
| ▸ | 72 |
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:72
@@ -69,7 +69,7 @@
)
logging.basicConfig(format=log_format, level=log_level)
- file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
+ file_filters = get_str_list_from_config('XXfile_filtersXX', config_file_data, default=default_file_filters)
# TODO: append file excludes and append py excludes
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
file_filters += cmd_excludes
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:72
@@ -69,7 +69,7 @@
)
logging.basicConfig(format=log_format, level=log_level)
- file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
+ file_filters = None
# TODO: append file excludes and append py excludes
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
file_filters += cmd_excludes
|
||
| 73 |
# TODO: append file excludes and append py excludes |
|
| 74 |
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
|
|
| ▸ | 75 |
file_filters += cmd_excludes |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:75
@@ -72,7 +72,7 @@
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
# TODO: append file excludes and append py excludes
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
- file_filters += cmd_excludes
+ file_filters = cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:75
@@ -72,7 +72,7 @@
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
# TODO: append file excludes and append py excludes
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
- file_filters += cmd_excludes
+ file_filters -= cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:75
@@ -72,7 +72,7 @@
file_filters = get_str_list_from_config("file_filters", config_file_data, default=default_file_filters)
# TODO: append file excludes and append py excludes
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
- file_filters += cmd_excludes
+ file_filters *= cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
|
||
| 76 | ||
| ▸ | 77 |
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:77
@@ -74,7 +74,7 @@
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
file_filters += cmd_excludes
- reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
+ reporters = get_str_list_from_config('XXreportersXX', config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:77
@@ -74,7 +74,7 @@
# file_filters += get_str_list_from_config("exclude", config_file_data, default=[]) # noqa: ERA001
file_filters += cmd_excludes
- reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
+ reporters = None
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
|
||
| ▸ | 78 |
reporters += [reporter for reporter in cmd_report if reporter not in reporters] |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:78
@@ -75,7 +75,7 @@
file_filters += cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
- reporters += [reporter for reporter in cmd_report if reporter not in reporters]
+ reporters = [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:78
@@ -75,7 +75,7 @@
file_filters += cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
- reporters += [reporter for reporter in cmd_report if reporter not in reporters]
+ reporters -= [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:78
@@ -75,7 +75,7 @@
file_filters += cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
- reporters += [reporter for reporter in cmd_report if reporter not in reporters]
+ reporters *= [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:78
@@ -75,7 +75,7 @@
file_filters += cmd_excludes
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
- reporters += [reporter for reporter in cmd_report if reporter not in reporters]
+ reporters += [reporter for reporter in cmd_report if reporter in reporters]
return PoodleConfig(
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
|
||
| 79 | ||
| ▸ | 80 |
return PoodleConfig( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:80
@@ -77,46 +77,7 @@
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
- return PoodleConfig(
- project_name=get_str_from_config("project_name", config_file_data, default=project_name),
- project_version=get_str_from_config("project_version", config_file_data, default=project_version),
- config_file=config_file_path,
- source_folders=get_source_folders(cmd_sources, config_file_data),
- only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
- file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
- file_filters=file_filters,
- file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
- file_copy_filters=get_str_list_from_config(
- "file_copy_filters",
- config_file_data,
- default=default_file_copy_filters,
- ),
- work_folder=get_path_from_config("work_folder", config_file_data, default=default_work_folder),
- max_workers=get_int_from_config(
- "max_workers",
- config_file_data,
- default=default_max_workers(),
- command_line=cmd_max_workers,
- ),
- log_format=log_format,
- log_level=log_level,
- echo_enabled=get_bool_from_config(
- "echo_enabled",
- config_file_data,
- default=True,
- command_line=get_cmd_line_echo_enabled(cmd_quiet),
- ),
- echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
- mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
- skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
- add_mutators=get_any_list_from_config("add_mutators", config_file_data),
- min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
- timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
- runner=get_str_from_config("runner", config_file_data, default=default_runner),
- runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
- reporters=reporters,
- reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
- )
+ return None
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:80
@@ -77,46 +77,7 @@
reporters = get_str_list_from_config("reporters", config_file_data, default=default_reporters)
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
- return PoodleConfig(
- project_name=get_str_from_config("project_name", config_file_data, default=project_name),
- project_version=get_str_from_config("project_version", config_file_data, default=project_version),
- config_file=config_file_path,
- source_folders=get_source_folders(cmd_sources, config_file_data),
- only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
- file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
- file_filters=file_filters,
- file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
- file_copy_filters=get_str_list_from_config(
- "file_copy_filters",
- config_file_data,
- default=default_file_copy_filters,
- ),
- work_folder=get_path_from_config("work_folder", config_file_data, default=default_work_folder),
- max_workers=get_int_from_config(
- "max_workers",
- config_file_data,
- default=default_max_workers(),
- command_line=cmd_max_workers,
- ),
- log_format=log_format,
- log_level=log_level,
- echo_enabled=get_bool_from_config(
- "echo_enabled",
- config_file_data,
- default=True,
- command_line=get_cmd_line_echo_enabled(cmd_quiet),
- ),
- echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
- mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
- skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
- add_mutators=get_any_list_from_config("add_mutators", config_file_data),
- min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
- timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
- runner=get_str_from_config("runner", config_file_data, default=default_runner),
- runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
- reporters=reporters,
- reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
- )
+ return None
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
|
||
| ▸ | 81 |
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:81
@@ -78,7 +78,7 @@
reporters += [reporter for reporter in cmd_report if reporter not in reporters]
return PoodleConfig(
- project_name=get_str_from_config("project_name", config_file_data, default=project_name),
+ project_name=get_str_from_config('XXproject_nameXX', config_file_data, default=project_name),
project_version=get_str_from_config("project_version", config_file_data, default=project_version),
config_file=config_file_path,
source_folders=get_source_folders(cmd_sources, config_file_data),
|
||
| ▸ | 82 |
project_version=get_str_from_config("project_version", config_file_data, default=project_version),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:82
@@ -79,7 +79,7 @@
return PoodleConfig(
project_name=get_str_from_config("project_name", config_file_data, default=project_name),
- project_version=get_str_from_config("project_version", config_file_data, default=project_version),
+ project_version=get_str_from_config('XXproject_versionXX', config_file_data, default=project_version),
config_file=config_file_path,
source_folders=get_source_folders(cmd_sources, config_file_data),
only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
|
||
| 83 |
config_file=config_file_path, |
|
| 84 |
source_folders=get_source_folders(cmd_sources, config_file_data), |
|
| ▸ | 85 |
only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:85
@@ -82,7 +82,7 @@
project_version=get_str_from_config("project_version", config_file_data, default=project_version),
config_file=config_file_path,
source_folders=get_source_folders(cmd_sources, config_file_data),
- only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
+ only_files=get_str_list_from_config('XXonly_filesXX', config_file_data, default=[], command_line=cmd_only_files),
file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
file_filters=file_filters,
file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
|
||
| ▸ | 86 |
file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:86
@@ -83,7 +83,7 @@
config_file=config_file_path,
source_folders=get_source_folders(cmd_sources, config_file_data),
only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
- file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
+ file_flags=get_int_from_config('XXfile_flagsXX', config_file_data, default=default_file_flags),
file_filters=file_filters,
file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
file_copy_filters=get_str_list_from_config(
|
||
| 87 |
file_filters=file_filters, |
|
| ▸ | 88 |
file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:88
@@ -85,7 +85,7 @@
only_files=get_str_list_from_config("only_files", config_file_data, default=[], command_line=cmd_only_files),
file_flags=get_int_from_config("file_flags", config_file_data, default=default_file_flags),
file_filters=file_filters,
- file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
+ file_copy_flags=get_int_from_config('XXfile_copy_flagsXX', config_file_data, default=default_file_copy_flags),
file_copy_filters=get_str_list_from_config(
"file_copy_filters",
config_file_data,
|
||
| 89 |
file_copy_filters=get_str_list_from_config( |
|
| ▸ | 90 |
"file_copy_filters", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:90
@@ -87,7 +87,7 @@
file_filters=file_filters,
file_copy_flags=get_int_from_config("file_copy_flags", config_file_data, default=default_file_copy_flags),
file_copy_filters=get_str_list_from_config(
- "file_copy_filters",
+ 'XXfile_copy_filtersXX',
config_file_data,
default=default_file_copy_filters,
),
|
||
| 91 |
config_file_data, |
|
| 92 |
default=default_file_copy_filters, |
|
| 93 |
), |
|
| ▸ | 94 |
work_folder=get_path_from_config("work_folder", config_file_data, default=default_work_folder),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:94
@@ -91,7 +91,7 @@
config_file_data,
default=default_file_copy_filters,
),
- work_folder=get_path_from_config("work_folder", config_file_data, default=default_work_folder),
+ work_folder=get_path_from_config('XXwork_folderXX', config_file_data, default=default_work_folder),
max_workers=get_int_from_config(
"max_workers",
config_file_data,
|
||
| 95 |
max_workers=get_int_from_config( |
|
| ▸ | 96 |
"max_workers", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:96
@@ -93,7 +93,7 @@
),
work_folder=get_path_from_config("work_folder", config_file_data, default=default_work_folder),
max_workers=get_int_from_config(
- "max_workers",
+ 'XXmax_workersXX',
config_file_data,
default=default_max_workers(),
command_line=cmd_max_workers,
|
||
| 97 |
config_file_data, |
|
| 98 |
default=default_max_workers(), |
|
| 99 |
command_line=cmd_max_workers, |
|
| 100 |
), |
|
| 101 |
log_format=log_format, |
|
| 102 |
log_level=log_level, |
|
| 103 |
echo_enabled=get_bool_from_config( |
|
| ▸ | 104 |
"echo_enabled", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:104
@@ -101,7 +101,7 @@
log_format=log_format,
log_level=log_level,
echo_enabled=get_bool_from_config(
- "echo_enabled",
+ 'XXecho_enabledXX',
config_file_data,
default=True,
command_line=get_cmd_line_echo_enabled(cmd_quiet),
|
||
| 105 |
config_file_data, |
|
| ▸ | 106 |
default=True, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:106
@@ -103,7 +103,7 @@
echo_enabled=get_bool_from_config(
"echo_enabled",
config_file_data,
- default=True,
+ default=False,
command_line=get_cmd_line_echo_enabled(cmd_quiet),
),
echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
|
||
| 107 |
command_line=get_cmd_line_echo_enabled(cmd_quiet), |
|
| 108 |
), |
|
| ▸ | 109 |
echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:109
@@ -106,7 +106,7 @@
default=True,
command_line=get_cmd_line_echo_enabled(cmd_quiet),
),
- echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
+ echo_no_color=get_bool_from_config('XXecho_no_colorXX', config_file_data),
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
|
||
| ▸ | 110 |
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:110
@@ -107,7 +107,7 @@
command_line=get_cmd_line_echo_enabled(cmd_quiet),
),
echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
- mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
+ mutator_opts=get_dict_from_config('XXmutator_optsXX', config_file_data, default=default_mutator_opts),
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
|
||
| ▸ | 111 |
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:111
@@ -108,7 +108,7 @@
),
echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
- skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
+ skip_mutators=get_str_list_from_config('XXskip_mutatorsXX', config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
|
||
| ▸ | 112 |
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:112
@@ -109,7 +109,7 @@
echo_no_color=get_bool_from_config("echo_no_color", config_file_data),
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
- add_mutators=get_any_list_from_config("add_mutators", config_file_data),
+ add_mutators=get_any_list_from_config('XXadd_mutatorsXX', config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
|
||
| ▸ | 113 |
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
|
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:113
@@ -110,7 +110,7 @@
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
- min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
+ min_timeout=get_int_from_config('min_timeout', config_file_data) and default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:113
@@ -110,7 +110,7 @@
mutator_opts=get_dict_from_config("mutator_opts", config_file_data, default=default_mutator_opts),
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
- min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
+ min_timeout=get_int_from_config('XXmin_timeoutXX', config_file_data) or default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
|
||
| ▸ | 114 |
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
|
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:114
@@ -111,7 +111,7 @@
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
- timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
+ timeout_multiplier=get_int_from_config('timeout_multiplier', config_file_data) and default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
reporters=reporters,
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:114
@@ -111,7 +111,7 @@
skip_mutators=get_str_list_from_config("skip_mutators", config_file_data, default=[]),
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
- timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
+ timeout_multiplier=get_int_from_config('XXtimeout_multiplierXX', config_file_data) or default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
reporters=reporters,
|
||
| ▸ | 115 |
runner=get_str_from_config("runner", config_file_data, default=default_runner),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:115
@@ -112,7 +112,7 @@
add_mutators=get_any_list_from_config("add_mutators", config_file_data),
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
- runner=get_str_from_config("runner", config_file_data, default=default_runner),
+ runner=get_str_from_config('XXrunnerXX', config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
reporters=reporters,
reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
|
||
| ▸ | 116 |
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:116
@@ -113,7 +113,7 @@
min_timeout=get_int_from_config("min_timeout", config_file_data) or default_min_timeout,
timeout_multiplier=get_int_from_config("timeout_multiplier", config_file_data) or default_timeout_multiplier,
runner=get_str_from_config("runner", config_file_data, default=default_runner),
- runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
+ runner_opts=get_dict_from_config('XXrunner_optsXX', config_file_data, default=default_runner_opts),
reporters=reporters,
reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
)
|
||
| 117 |
reporters=reporters, |
|
| ▸ | 118 |
reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:118
@@ -115,7 +115,7 @@
runner=get_str_from_config("runner", config_file_data, default=default_runner),
runner_opts=get_dict_from_config("runner_opts", config_file_data, default=default_runner_opts),
reporters=reporters,
- reporter_opts=get_dict_from_config("reporter_opts", config_file_data, default=default_reporter_opts),
+ reporter_opts=get_dict_from_config('XXreporter_optsXX', config_file_data, default=default_reporter_opts),
)
|
||
| 119 |
) |
|
| 120 | ||
| 121 | ||
| 122 |
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None: |
|
| 123 |
"""Map verbosity input to logging level.""" |
|
| ▸ | 124 |
if cmd_quiet >= 3: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:124
@@ -121,7 +121,7 @@
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
"""Map verbosity input to logging level."""
- if cmd_quiet >= 3:
+ if cmd_quiet < 3:
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:124
@@ -121,7 +121,7 @@
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
"""Map verbosity input to logging level."""
- if cmd_quiet >= 3:
+ if cmd_quiet > 3:
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:124
@@ -121,7 +121,7 @@
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
"""Map verbosity input to logging level."""
- if cmd_quiet >= 3:
+ if cmd_quiet >= 4:
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:124
@@ -121,7 +121,7 @@
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
"""Map verbosity input to logging level."""
- if cmd_quiet >= 3:
+ if cmd_quiet >= 2:
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
|
||
| ▸ | 125 |
return logging.CRITICAL |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:125
@@ -122,7 +122,7 @@
def get_cmd_line_log_level(cmd_quiet: int, cmd_verbose: int) -> int | None:
"""Map verbosity input to logging level."""
if cmd_quiet >= 3:
- return logging.CRITICAL
+ return None
if cmd_quiet == 2:
return logging.ERROR
if cmd_quiet == 1:
|
||
| ▸ | 126 |
if cmd_quiet == 2: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:126
@@ -123,7 +123,7 @@
"""Map verbosity input to logging level."""
if cmd_quiet >= 3:
return logging.CRITICAL
- if cmd_quiet == 2:
+ if cmd_quiet != 2:
return logging.ERROR
if cmd_quiet == 1:
return logging.WARN
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:126
@@ -123,7 +123,7 @@
"""Map verbosity input to logging level."""
if cmd_quiet >= 3:
return logging.CRITICAL
- if cmd_quiet == 2:
+ if cmd_quiet == 3:
return logging.ERROR
if cmd_quiet == 1:
return logging.WARN
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:126
@@ -123,7 +123,7 @@
"""Map verbosity input to logging level."""
if cmd_quiet >= 3:
return logging.CRITICAL
- if cmd_quiet == 2:
+ if cmd_quiet == 1:
return logging.ERROR
if cmd_quiet == 1:
return logging.WARN
|
||
| ▸ | 127 |
return logging.ERROR |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:127
@@ -124,7 +124,7 @@
if cmd_quiet >= 3:
return logging.CRITICAL
if cmd_quiet == 2:
- return logging.ERROR
+ return None
if cmd_quiet == 1:
return logging.WARN
|
||
| ▸ | 128 |
if cmd_quiet == 1: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:128
@@ -125,7 +125,7 @@
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
- if cmd_quiet == 1:
+ if cmd_quiet != 1:
return logging.WARN
if cmd_verbose >= 3:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:128
@@ -125,7 +125,7 @@
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
- if cmd_quiet == 1:
+ if cmd_quiet == 2:
return logging.WARN
if cmd_verbose >= 3:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:128
@@ -125,7 +125,7 @@
return logging.CRITICAL
if cmd_quiet == 2:
return logging.ERROR
- if cmd_quiet == 1:
+ if cmd_quiet == 0:
return logging.WARN
if cmd_verbose >= 3:
|
||
| ▸ | 129 |
return logging.WARN |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:129
@@ -126,7 +126,7 @@
if cmd_quiet == 2:
return logging.ERROR
if cmd_quiet == 1:
- return logging.WARN
+ return None
if cmd_verbose >= 3:
return logging.NOTSET
|
||
| 130 | ||
| ▸ | 131 |
if cmd_verbose >= 3: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:131
@@ -128,7 +128,7 @@
if cmd_quiet == 1:
return logging.WARN
- if cmd_verbose >= 3:
+ if cmd_verbose < 3:
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:131
@@ -128,7 +128,7 @@
if cmd_quiet == 1:
return logging.WARN
- if cmd_verbose >= 3:
+ if cmd_verbose > 3:
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:131
@@ -128,7 +128,7 @@
if cmd_quiet == 1:
return logging.WARN
- if cmd_verbose >= 3:
+ if cmd_verbose >= 4:
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:131
@@ -128,7 +128,7 @@
if cmd_quiet == 1:
return logging.WARN
- if cmd_verbose >= 3:
+ if cmd_verbose >= 2:
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
|
||
| ▸ | 132 |
return logging.NOTSET |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:132
@@ -129,7 +129,7 @@
return logging.WARN
if cmd_verbose >= 3:
- return logging.NOTSET
+ return None
if cmd_verbose == 2:
return logging.DEBUG
if cmd_verbose == 1:
|
||
| ▸ | 133 |
if cmd_verbose == 2: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:133
@@ -130,7 +130,7 @@
if cmd_verbose >= 3:
return logging.NOTSET
- if cmd_verbose == 2:
+ if cmd_verbose != 2:
return logging.DEBUG
if cmd_verbose == 1:
return logging.INFO
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:133
@@ -130,7 +130,7 @@
if cmd_verbose >= 3:
return logging.NOTSET
- if cmd_verbose == 2:
+ if cmd_verbose == 3:
return logging.DEBUG
if cmd_verbose == 1:
return logging.INFO
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:133
@@ -130,7 +130,7 @@
if cmd_verbose >= 3:
return logging.NOTSET
- if cmd_verbose == 2:
+ if cmd_verbose == 1:
return logging.DEBUG
if cmd_verbose == 1:
return logging.INFO
|
||
| ▸ | 134 |
return logging.DEBUG |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:134
@@ -131,7 +131,7 @@
if cmd_verbose >= 3:
return logging.NOTSET
if cmd_verbose == 2:
- return logging.DEBUG
+ return None
if cmd_verbose == 1:
return logging.INFO
|
||
| ▸ | 135 |
if cmd_verbose == 1: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:135
@@ -132,7 +132,7 @@
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
- if cmd_verbose == 1:
+ if cmd_verbose != 1:
return logging.INFO
return None
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:135
@@ -132,7 +132,7 @@
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
- if cmd_verbose == 1:
+ if cmd_verbose == 2:
return logging.INFO
return None
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:135
@@ -132,7 +132,7 @@
return logging.NOTSET
if cmd_verbose == 2:
return logging.DEBUG
- if cmd_verbose == 1:
+ if cmd_verbose == 0:
return logging.INFO
return None
|
||
| ▸ | 136 |
return logging.INFO |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:136
@@ -133,7 +133,7 @@
if cmd_verbose == 2:
return logging.DEBUG
if cmd_verbose == 1:
- return logging.INFO
+ return None
return None
|
||
| 137 | ||
| ▸ | 138 |
return None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:138
@@ -135,7 +135,7 @@
if cmd_verbose == 1:
return logging.INFO
- return None
+ return ' '
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:138
@@ -135,7 +135,7 @@
if cmd_verbose == 1:
return logging.INFO
- return None
+ return ''
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
|
||
| 139 | ||
| 140 | ||
| 141 |
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None: |
|
| 142 |
"""Map verbosity input to enable/disable echo statements.""" |
|
| ▸ | 143 |
if cmd_quiet == 0: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:143
@@ -140,7 +140,7 @@
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
"""Map verbosity input to enable/disable echo statements."""
- if cmd_quiet == 0:
+ if cmd_quiet != 0:
return None
return False
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:143
@@ -140,7 +140,7 @@
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
"""Map verbosity input to enable/disable echo statements."""
- if cmd_quiet == 0:
+ if cmd_quiet == 1:
return None
return False
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:143
@@ -140,7 +140,7 @@
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
"""Map verbosity input to enable/disable echo statements."""
- if cmd_quiet == 0:
+ if cmd_quiet == -1:
return None
return False
|
||
| ▸ | 144 |
return None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:144
@@ -141,7 +141,7 @@
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
"""Map verbosity input to enable/disable echo statements."""
if cmd_quiet == 0:
- return None
+ return ' '
return False
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:144
@@ -141,7 +141,7 @@
def get_cmd_line_echo_enabled(cmd_quiet: int) -> bool | None:
"""Map verbosity input to enable/disable echo statements."""
if cmd_quiet == 0:
- return None
+ return ''
return False
|
||
| ▸ | 145 |
return False |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:145
@@ -142,7 +142,7 @@
"""Map verbosity input to enable/disable echo statements."""
if cmd_quiet == 0:
return None
- return False
+ return True
def get_config_file_path(config_file: Path | None) -> Path | None:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:145
@@ -142,7 +142,7 @@
"""Map verbosity input to enable/disable echo statements."""
if cmd_quiet == 0:
return None
- return False
+ return None
def get_config_file_path(config_file: Path | None) -> Path | None:
|
||
| 146 | ||
| 147 | ||
| 148 |
def get_config_file_path(config_file: Path | None) -> Path | None: |
|
| 149 |
"""Identify which configuration file to use. |
|
| 150 | ||
| 151 |
Checks in this order, first value is used. |
|
| 152 |
Command Line, poodle.toml, pyproject.toml. |
|
| 153 |
Returns None if no config file found. |
|
| 154 |
""" |
|
| 155 |
if config_file: |
|
| ▸ | 156 |
if not config_file.is_file(): |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:156
@@ -153,7 +153,7 @@
Returns None if no config file found.
"""
if config_file:
- if not config_file.is_file():
+ if config_file.is_file():
msg = f"Config file not found: '{config_file}'"
raise PoodleInputError(msg)
return config_file
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:156
@@ -153,7 +153,7 @@
Returns None if no config file found.
"""
if config_file:
- if not config_file.is_file():
+ if not None:
msg = f"Config file not found: '{config_file}'"
raise PoodleInputError(msg)
return config_file
|
||
| ▸ | 157 |
msg = f"Config file not found: '{config_file}'"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:157
@@ -154,7 +154,7 @@
"""
if config_file:
if not config_file.is_file():
- msg = f"Config file not found: '{config_file}'"
+ msg = f""XXConfig file not found: 'XX"{config_file}'"
raise PoodleInputError(msg)
return config_file
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:157
@@ -154,7 +154,7 @@
"""
if config_file:
if not config_file.is_file():
- msg = f"Config file not found: '{config_file}'"
+ msg = f"Config file not found: '{config_file}"XX'XX""
raise PoodleInputError(msg)
return config_file
|
||
| ▸ | 158 |
raise PoodleInputError(msg) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:158
@@ -155,7 +155,7 @@
if config_file:
if not config_file.is_file():
msg = f"Config file not found: '{config_file}'"
- raise PoodleInputError(msg)
+ raise None
return config_file
if hasattr(poodle_config, "config_file"):
|
||
| ▸ | 159 |
return config_file |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:159
@@ -156,7 +156,7 @@
if not config_file.is_file():
msg = f"Config file not found: '{config_file}'"
raise PoodleInputError(msg)
- return config_file
+ return None
if hasattr(poodle_config, "config_file"):
config_file = Path(poodle_config.config_file)
|
||
| 160 | ||
| ▸ | 161 |
if hasattr(poodle_config, "config_file"): |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:161
@@ -158,7 +158,7 @@
raise PoodleInputError(msg)
return config_file
- if hasattr(poodle_config, "config_file"):
+ if hasattr(poodle_config, 'XXconfig_fileXX'):
config_file = Path(poodle_config.config_file)
if not config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:161
@@ -158,7 +158,7 @@
raise PoodleInputError(msg)
return config_file
- if hasattr(poodle_config, "config_file"):
+ if None:
config_file = Path(poodle_config.config_file)
if not config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
|
||
| ▸ | 162 |
config_file = Path(poodle_config.config_file) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:162
@@ -159,7 +159,7 @@
return config_file
if hasattr(poodle_config, "config_file"):
- config_file = Path(poodle_config.config_file)
+ config_file = None
if not config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
raise PoodleInputError(msg)
|
||
| ▸ | 163 |
if not config_file.is_file(): |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:163
@@ -160,7 +160,7 @@
if hasattr(poodle_config, "config_file"):
config_file = Path(poodle_config.config_file)
- if not config_file.is_file():
+ if config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
raise PoodleInputError(msg)
return config_file
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:163
@@ -160,7 +160,7 @@
if hasattr(poodle_config, "config_file"):
config_file = Path(poodle_config.config_file)
- if not config_file.is_file():
+ if not None:
msg = f"config_file not found: '{poodle_config.config_file}'"
raise PoodleInputError(msg)
return config_file
|
||
| ▸ | 164 |
msg = f"config_file not found: '{poodle_config.config_file}'"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:164
@@ -161,7 +161,7 @@
if hasattr(poodle_config, "config_file"):
config_file = Path(poodle_config.config_file)
if not config_file.is_file():
- msg = f"config_file not found: '{poodle_config.config_file}'"
+ msg = f""XXconfig_file not found: 'XX"{poodle_config.config_file}'"
raise PoodleInputError(msg)
return config_file
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:164
@@ -161,7 +161,7 @@
if hasattr(poodle_config, "config_file"):
config_file = Path(poodle_config.config_file)
if not config_file.is_file():
- msg = f"config_file not found: '{poodle_config.config_file}'"
+ msg = f"config_file not found: '{poodle_config.config_file}"XX'XX""
raise PoodleInputError(msg)
return config_file
|
||
| ▸ | 165 |
raise PoodleInputError(msg) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:165
@@ -162,7 +162,7 @@
config_file = Path(poodle_config.config_file)
if not config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
- raise PoodleInputError(msg)
+ raise None
return config_file
files = [
|
||
| ▸ | 166 |
return config_file |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:166
@@ -163,7 +163,7 @@
if not config_file.is_file():
msg = f"config_file not found: '{poodle_config.config_file}'"
raise PoodleInputError(msg)
- return config_file
+ return None
files = [
"poodle.toml",
|
||
| 167 | ||
| 168 |
files = [ |
|
| ▸ | 169 |
"poodle.toml", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:169
@@ -166,7 +166,7 @@
return config_file
files = [
- "poodle.toml",
+ 'XXpoodle.tomlXX',
"pyproject.toml",
] # TODO: ["poodle.toml", "tox.ini", "setup.cfg", "pyproject.toml"]
|
||
| ▸ | 170 |
"pyproject.toml", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:170
@@ -167,7 +167,7 @@
files = [
"poodle.toml",
- "pyproject.toml",
+ 'XXpyproject.tomlXX',
] # TODO: ["poodle.toml", "tox.ini", "setup.cfg", "pyproject.toml"]
for file in files:
|
||
| 171 |
] # TODO: ["poodle.toml", "tox.ini", "setup.cfg", "pyproject.toml"] |
|
| 172 | ||
| 173 |
for file in files: |
|
| ▸ | 174 |
path = Path(file) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:174
@@ -171,7 +171,7 @@
] # TODO: ["poodle.toml", "tox.ini", "setup.cfg", "pyproject.toml"]
for file in files:
- path = Path(file)
+ path = None
if path.is_file():
return path
|
||
| ▸ | 175 |
if path.is_file(): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:175
@@ -172,7 +172,7 @@
for file in files:
path = Path(file)
- if path.is_file():
+ if None:
return path
return None
|
||
| ▸ | 176 |
return path |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:176
@@ -173,7 +173,7 @@
for file in files:
path = Path(file)
if path.is_file():
- return path
+ return None
return None
|
||
| 177 | ||
| ▸ | 178 |
return None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:178
@@ -175,7 +175,7 @@
if path.is_file():
return path
- return None
+ return ' '
def get_config_file_data(config_file: Path | None) -> dict:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:178
@@ -175,7 +175,7 @@
if path.is_file():
return path
- return None
+ return ''
def get_config_file_data(config_file: Path | None) -> dict:
|
||
| 179 | ||
| 180 | ||
| 181 |
def get_config_file_data(config_file: Path | None) -> dict: |
|
| 182 |
"""Retrieve Poodle configuration from specified Config File.""" |
|
| ▸ | 183 |
if not config_file: |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:183
@@ -180,7 +180,7 @@
def get_config_file_data(config_file: Path | None) -> dict:
"""Retrieve Poodle configuration from specified Config File."""
- if not config_file:
+ if config_file:
return {}
if config_file.suffix == ".toml":
|
||
| ▸ | 184 |
return {}
|
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:184
@@ -181,7 +181,7 @@
def get_config_file_data(config_file: Path | None) -> dict:
"""Retrieve Poodle configuration from specified Config File."""
if not config_file:
- return {}
+ return None
if config_file.suffix == ".toml":
return get_config_file_data_toml(config_file)
|
||
| 185 | ||
| ▸ | 186 |
if config_file.suffix == ".toml": |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:186
@@ -183,7 +183,7 @@
if not config_file:
return {}
- if config_file.suffix == ".toml":
+ if config_file.suffix != '.toml':
return get_config_file_data_toml(config_file)
# TODO: tox.ini and setup.cfg
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:186
@@ -183,7 +183,7 @@
if not config_file:
return {}
- if config_file.suffix == ".toml":
+ if config_file.suffix == 'XX.tomlXX':
return get_config_file_data_toml(config_file)
# TODO: tox.ini and setup.cfg
|
||
| ▸ | 187 |
return get_config_file_data_toml(config_file) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:187
@@ -184,7 +184,7 @@
return {}
if config_file.suffix == ".toml":
- return get_config_file_data_toml(config_file)
+ return None
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:187
@@ -184,7 +184,7 @@
return {}
if config_file.suffix == ".toml":
- return get_config_file_data_toml(config_file)
+ return None
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
|
||
| 188 | ||
| 189 |
# TODO: tox.ini and setup.cfg |
|
| 190 |
# https://tox.wiki/en/3.24.5/config.html |
|
| 191 | ||
| ▸ | 192 |
msg = f"Config file type not supported: --config_file='{config_file}'"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:192
@@ -189,7 +189,7 @@
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
- msg = f"Config file type not supported: --config_file='{config_file}'"
+ msg = f""XXConfig file type not supported: --config_file='XX"{config_file}'"
raise PoodleInputError(msg)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:192
@@ -189,7 +189,7 @@
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
- msg = f"Config file type not supported: --config_file='{config_file}'"
+ msg = f"Config file type not supported: --config_file='{config_file}"XX'XX""
raise PoodleInputError(msg)
|
||
| ▸ | 193 |
raise PoodleInputError(msg) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:193
@@ -190,7 +190,7 @@
# https://tox.wiki/en/3.24.5/config.html
msg = f"Config file type not supported: --config_file='{config_file}'"
- raise PoodleInputError(msg)
+ raise None
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
|
||
| 194 | ||
| 195 | ||
| ▸ | 196 |
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None): |
|
Status: Mutant Not Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:196
@@ -193,7 +193,7 @@
raise PoodleInputError(msg)
-def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
+def get_project_info(config_file: Path | None) -> None:
"""Retrieve Poodle configuration from specified Config File."""
if not config_file:
return (None, None)
|
||
| 197 |
"""Retrieve Poodle configuration from specified Config File.""" |
|
| ▸ | 198 |
if not config_file: |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:198
@@ -195,7 +195,7 @@
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
"""Retrieve Poodle configuration from specified Config File."""
- if not config_file:
+ if config_file:
return (None, None)
if config_file.suffix == ".toml":
|
||
| ▸ | 199 |
return (None, None) |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:199
@@ -196,7 +196,7 @@
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
"""Retrieve Poodle configuration from specified Config File."""
if not config_file:
- return (None, None)
+ return (' ', None)
if config_file.suffix == ".toml":
return get_project_info_toml(config_file)
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:199
@@ -196,7 +196,7 @@
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
"""Retrieve Poodle configuration from specified Config File."""
if not config_file:
- return (None, None)
+ return (None, ' ')
if config_file.suffix == ".toml":
return get_project_info_toml(config_file)
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:199
@@ -196,7 +196,7 @@
def get_project_info(config_file: Path | None) -> tuple(str | None, str | None):
"""Retrieve Poodle configuration from specified Config File."""
if not config_file:
- return (None, None)
+ return None
if config_file.suffix == ".toml":
return get_project_info_toml(config_file)
|
||
| 200 | ||
| ▸ | 201 |
if config_file.suffix == ".toml": |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:201
@@ -198,7 +198,7 @@
if not config_file:
return (None, None)
- if config_file.suffix == ".toml":
+ if config_file.suffix != '.toml':
return get_project_info_toml(config_file)
# TODO: tox.ini and setup.cfg
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:201
@@ -198,7 +198,7 @@
if not config_file:
return (None, None)
- if config_file.suffix == ".toml":
+ if config_file.suffix == 'XX.tomlXX':
return get_project_info_toml(config_file)
# TODO: tox.ini and setup.cfg
|
||
| ▸ | 202 |
return get_project_info_toml(config_file) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:202
@@ -199,7 +199,7 @@
return (None, None)
if config_file.suffix == ".toml":
- return get_project_info_toml(config_file)
+ return None
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:202
@@ -199,7 +199,7 @@
return (None, None)
if config_file.suffix == ".toml":
- return get_project_info_toml(config_file)
+ return None
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
|
||
| 203 | ||
| 204 |
# TODO: tox.ini and setup.cfg |
|
| 205 |
# https://tox.wiki/en/3.24.5/config.html |
|
| 206 | ||
| ▸ | 207 |
msg = f"Config file type not supported: --config_file='{config_file}'"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:207
@@ -204,7 +204,7 @@
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
- msg = f"Config file type not supported: --config_file='{config_file}'"
+ msg = f""XXConfig file type not supported: --config_file='XX"{config_file}'"
raise PoodleInputError(msg)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:207
@@ -204,7 +204,7 @@
# TODO: tox.ini and setup.cfg
# https://tox.wiki/en/3.24.5/config.html
- msg = f"Config file type not supported: --config_file='{config_file}'"
+ msg = f"Config file type not supported: --config_file='{config_file}"XX'XX""
raise PoodleInputError(msg)
|
||
| ▸ | 208 |
raise PoodleInputError(msg) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:208
@@ -205,7 +205,7 @@
# https://tox.wiki/en/3.24.5/config.html
msg = f"Config file type not supported: --config_file='{config_file}'"
- raise PoodleInputError(msg)
+ raise None
def get_config_file_data_toml(config_file: Path) -> dict:
|
||
| 209 | ||
| 210 | ||
| 211 |
def get_config_file_data_toml(config_file: Path) -> dict: |
|
| 212 |
"""Retrieve Poodle configuration from a 'toml' Config File.""" |
|
| ▸ | 213 |
config_data = tomllib.load(config_file.open(mode="rb")) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:213
@@ -210,7 +210,7 @@
def get_config_file_data_toml(config_file: Path) -> dict:
"""Retrieve Poodle configuration from a 'toml' Config File."""
- config_data = tomllib.load(config_file.open(mode="rb"))
+ config_data = tomllib.load(config_file.open(mode='XXrbXX'))
config_data: dict = config_data.get("tool", config_data)
return config_data.get("poodle", {})
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:213
@@ -210,7 +210,7 @@
def get_config_file_data_toml(config_file: Path) -> dict:
"""Retrieve Poodle configuration from a 'toml' Config File."""
- config_data = tomllib.load(config_file.open(mode="rb"))
+ config_data = None
config_data: dict = config_data.get("tool", config_data)
return config_data.get("poodle", {})
|
||
| ▸ | 214 |
config_data: dict = config_data.get("tool", config_data)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:214
@@ -211,7 +211,7 @@
def get_config_file_data_toml(config_file: Path) -> dict:
"""Retrieve Poodle configuration from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
- config_data: dict = config_data.get("tool", config_data)
+ config_data: dict = config_data.get('XXtoolXX', config_data)
return config_data.get("poodle", {})
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:214
@@ -211,7 +211,7 @@
def get_config_file_data_toml(config_file: Path) -> dict:
"""Retrieve Poodle configuration from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
- config_data: dict = config_data.get("tool", config_data)
+ config_data: dict = None
return config_data.get("poodle", {})
|
||
| ▸ | 215 |
return config_data.get("poodle", {})
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:215
@@ -212,7 +212,7 @@
"""Retrieve Poodle configuration from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("tool", config_data)
- return config_data.get("poodle", {})
+ return config_data.get('XXpoodleXX', {})
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:215
@@ -212,7 +212,7 @@
"""Retrieve Poodle configuration from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("tool", config_data)
- return config_data.get("poodle", {})
+ return None
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:215
@@ -212,7 +212,7 @@
"""Retrieve Poodle configuration from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("tool", config_data)
- return config_data.get("poodle", {})
+ return None
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
|
||
| 216 | ||
| 217 | ||
| ▸ | 218 |
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None): |
|
Status: Mutant Not Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:218
@@ -215,7 +215,7 @@
return config_data.get("poodle", {})
-def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
+def get_project_info_toml(config_file: Path) -> None:
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
|
||
| 219 |
"""Retrieve Project Name and Version from a 'toml' Config File.""" |
|
| ▸ | 220 |
config_data = tomllib.load(config_file.open(mode="rb")) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:220
@@ -217,7 +217,7 @@
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
"""Retrieve Project Name and Version from a 'toml' Config File."""
- config_data = tomllib.load(config_file.open(mode="rb"))
+ config_data = tomllib.load(config_file.open(mode='XXrbXX'))
config_data: dict = config_data.get("project", config_data)
return config_data.get("name", None), config_data.get("version", None)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:220
@@ -217,7 +217,7 @@
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
"""Retrieve Project Name and Version from a 'toml' Config File."""
- config_data = tomllib.load(config_file.open(mode="rb"))
+ config_data = None
config_data: dict = config_data.get("project", config_data)
return config_data.get("name", None), config_data.get("version", None)
|
||
| ▸ | 221 |
config_data: dict = config_data.get("project", config_data)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:221
@@ -218,7 +218,7 @@
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
- config_data: dict = config_data.get("project", config_data)
+ config_data: dict = config_data.get('XXprojectXX', config_data)
return config_data.get("name", None), config_data.get("version", None)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:221
@@ -218,7 +218,7 @@
def get_project_info_toml(config_file: Path) -> tuple(str | None, str | None):
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
- config_data: dict = config_data.get("project", config_data)
+ config_data: dict = None
return config_data.get("name", None), config_data.get("version", None)
|
||
| ▸ | 222 |
return config_data.get("name", None), config_data.get("version", None)
|
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return config_data.get("name", ' '), config_data.get("version", None)
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return config_data.get("name", None), config_data.get("version", ' ')
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return config_data.get('XXnameXX', None), config_data.get("version", None)
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return config_data.get("name", None), config_data.get('XXversionXX', None)
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return None, config_data.get("version", None)
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return config_data.get("name", None), None
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:222
@@ -219,7 +219,7 @@
"""Retrieve Project Name and Version from a 'toml' Config File."""
config_data = tomllib.load(config_file.open(mode="rb"))
config_data: dict = config_data.get("project", config_data)
- return config_data.get("name", None), config_data.get("version", None)
+ return None
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]:
|
||
| 223 | ||
| 224 | ||
| 225 |
def get_source_folders(command_line_sources: tuple[Path], config_data: dict) -> list[Path]: |
|
| 226 |
"""Retrieve list of source folders that contain files to mutate. |
|
| 227 | ||
| 228 |
Verifies that all returned values are existing directories. |
|
| 229 |
""" |
|
| ▸ | 230 |
source_folders = get_path_list_from_config( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:230
@@ -227,12 +227,7 @@
Verifies that all returned values are existing directories.
"""
- source_folders = get_path_list_from_config(
- option_name="source_folders",
- config_data=config_data,
- command_line=command_line_sources,
- default=[source for source in default_source_folders if source.is_dir()],
- )
+ source_folders = None
if not source_folders:
raise PoodleInputError("No source folder found to mutate.")
|
||
| ▸ | 231 |
option_name="source_folders", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:231
@@ -228,7 +228,7 @@
Verifies that all returned values are existing directories.
"""
source_folders = get_path_list_from_config(
- option_name="source_folders",
+ option_name='XXsource_foldersXX',
config_data=config_data,
command_line=command_line_sources,
default=[source for source in default_source_folders if source.is_dir()],
|
||
| 232 |
config_data=config_data, |
|
| 233 |
command_line=command_line_sources, |
|
| 234 |
default=[source for source in default_source_folders if source.is_dir()], |
|
| 235 |
) |
|
| 236 | ||
| ▸ | 237 |
if not source_folders: |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:237
@@ -234,7 +234,7 @@
default=[source for source in default_source_folders if source.is_dir()],
)
- if not source_folders:
+ if source_folders:
raise PoodleInputError("No source folder found to mutate.")
for source in source_folders:
|
||
| ▸ | 238 |
raise PoodleInputError("No source folder found to mutate.")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:238
@@ -235,7 +235,7 @@
)
if not source_folders:
- raise PoodleInputError("No source folder found to mutate.")
+ raise PoodleInputError('XXNo source folder found to mutate.XX')
for source in source_folders:
if not source.is_dir():
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:238
@@ -235,7 +235,7 @@
)
if not source_folders:
- raise PoodleInputError("No source folder found to mutate.")
+ raise None
for source in source_folders:
if not source.is_dir():
|
||
| 239 | ||
| 240 |
for source in source_folders: |
|
| ▸ | 241 |
if not source.is_dir(): |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:241
@@ -238,7 +238,7 @@
raise PoodleInputError("No source folder found to mutate.")
for source in source_folders:
- if not source.is_dir():
+ if source.is_dir():
msg = f"Source '{source}' must be a folder."
raise PoodleInputError(msg)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:241
@@ -238,7 +238,7 @@
raise PoodleInputError("No source folder found to mutate.")
for source in source_folders:
- if not source.is_dir():
+ if not None:
msg = f"Source '{source}' must be a folder."
raise PoodleInputError(msg)
|
||
| ▸ | 242 |
msg = f"Source '{source}' must be a folder."
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:242
@@ -239,7 +239,7 @@
for source in source_folders:
if not source.is_dir():
- msg = f"Source '{source}' must be a folder."
+ msg = f""XXSource 'XX"{source}' must be a folder."
raise PoodleInputError(msg)
return source_folders
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:242
@@ -239,7 +239,7 @@
for source in source_folders:
if not source.is_dir():
- msg = f"Source '{source}' must be a folder."
+ msg = f"Source '{source}"XX' must be a folder.XX""
raise PoodleInputError(msg)
return source_folders
|
||
| ▸ | 243 |
raise PoodleInputError(msg) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:243
@@ -240,7 +240,7 @@
for source in source_folders:
if not source.is_dir():
msg = f"Source '{source}' must be a folder."
- raise PoodleInputError(msg)
+ raise None
return source_folders
|
||
| 244 | ||
| ▸ | 245 |
return source_folders |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:245
@@ -242,7 +242,7 @@
msg = f"Source '{source}' must be a folder."
raise PoodleInputError(msg)
- return source_folders
+ return None
def get_bool_from_config(
|
||
| 246 | ||
| 247 | ||
| 248 |
def get_bool_from_config( |
|
| 249 |
option_name: str, |
|
| 250 |
config_data: dict, |
|
| ▸ | 251 |
default: bool | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:251
@@ -248,7 +248,7 @@
def get_bool_from_config(
option_name: str,
config_data: dict,
- default: bool | None = None,
+ default: bool | None = ' ',
command_line: bool | str | None = None,
) -> bool | None:
"""Retrieve Config Option that should be a Boolean.
|
||
| ▸ | 252 |
command_line: bool | str | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:252
@@ -249,7 +249,7 @@
option_name: str,
config_data: dict,
default: bool | None = None,
- command_line: bool | str | None = None,
+ command_line: bool | str | None = ' ',
) -> bool | None:
"""Retrieve Config Option that should be a Boolean.
|
||
| 253 |
) -> bool | None: |
|
| 254 |
"""Retrieve Config Option that should be a Boolean. |
|
| 255 | ||
| 256 |
Retrieve highest priority value from config sources. |
|
| 257 |
""" |
|
| ▸ | 258 |
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:258
@@ -255,7 +255,7 @@
Retrieve highest priority value from config sources.
"""
- value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
+ value, _ = None
if isinstance(value, bool):
return value
|
||
| 259 | ||
| ▸ | 260 |
if isinstance(value, bool): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:260
@@ -257,7 +257,7 @@
"""
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if isinstance(value, bool):
+ if None:
return value
if isinstance(value, str):
|
||
| ▸ | 261 |
return value |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:261
@@ -258,7 +258,7 @@
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
if isinstance(value, bool):
- return value
+ return None
if isinstance(value, str):
return value.upper() == "TRUE"
|
||
| 262 | ||
| ▸ | 263 |
if isinstance(value, str): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:263
@@ -260,7 +260,7 @@
if isinstance(value, bool):
return value
- if isinstance(value, str):
+ if None:
return value.upper() == "TRUE"
return default
|
||
| ▸ | 264 |
return value.upper() == "TRUE" |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:264
@@ -261,7 +261,7 @@
return value
if isinstance(value, str):
- return value.upper() == "TRUE"
+ return value.upper() != 'TRUE'
return default
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:264
@@ -261,7 +261,7 @@
return value
if isinstance(value, str):
- return value.upper() == "TRUE"
+ return value.upper() == 'XXTRUEXX'
return default
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:264
@@ -261,7 +261,7 @@
return value
if isinstance(value, str):
- return value.upper() == "TRUE"
+ return None == "TRUE"
return default
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:264
@@ -261,7 +261,7 @@
return value
if isinstance(value, str):
- return value.upper() == "TRUE"
+ return None
return default
|
||
| 265 | ||
| ▸ | 266 |
return default |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:266
@@ -263,7 +263,7 @@
if isinstance(value, str):
return value.upper() == "TRUE"
- return default
+ return None
def get_path_from_config(
|
||
| 267 | ||
| 268 | ||
| 269 |
def get_path_from_config( |
|
| 270 |
option_name: str, |
|
| 271 |
config_data: dict, |
|
| 272 |
default: Path, |
|
| ▸ | 273 |
command_line: Path | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:273
@@ -270,7 +270,7 @@
option_name: str,
config_data: dict,
default: Path,
- command_line: Path | None = None,
+ command_line: Path | None = ' ',
) -> Path:
"""Retrieve Config Option that should be a String.
|
||
| 274 |
) -> Path: |
|
| 275 |
"""Retrieve Config Option that should be a String. |
|
| 276 | ||
| 277 |
Retrieve highest priority value from config sources. |
|
| 278 |
""" |
|
| ▸ | 279 |
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:279
@@ -276,7 +276,7 @@
Retrieve highest priority value from config sources.
"""
- value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
+ value, source = None
if value is None:
return default
|
||
| 280 | ||
| ▸ | 281 |
if value is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:281
@@ -278,7 +278,7 @@
"""
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is not None:
return default
try:
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:281
@@ -278,7 +278,7 @@
"""
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is ' ':
return default
try:
|
||
| ▸ | 282 |
return default |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:282
@@ -279,7 +279,7 @@
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
if value is None:
- return default
+ return None
try:
return Path(value)
|
||
| 283 | ||
| 284 |
try: |
|
| ▸ | 285 |
return Path(value) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:285
@@ -282,7 +282,7 @@
return default
try:
- return Path(value)
+ return None
except TypeError:
msg = f"{option_name} from {source} must be a valid StrPath"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:285
@@ -282,7 +282,7 @@
return default
try:
- return Path(value)
+ return None
except TypeError:
msg = f"{option_name} from {source} must be a valid StrPath"
raise PoodleInputError(msg) from None
|
||
| 286 |
except TypeError: |
|
| ▸ | 287 |
msg = f"{option_name} from {source} must be a valid StrPath"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:287
@@ -284,7 +284,7 @@
try:
return Path(value)
except TypeError:
- msg = f"{option_name} from {source} must be a valid StrPath"
+ msg = f"{option_name}'XX from XX'{source} must be a valid StrPath"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:287
@@ -284,7 +284,7 @@
try:
return Path(value)
except TypeError:
- msg = f"{option_name} from {source} must be a valid StrPath"
+ msg = f"{option_name} from {source}'XX must be a valid StrPathXX'"
raise PoodleInputError(msg) from None
|
||
| ▸ | 288 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:288
@@ -285,7 +285,7 @@
return Path(value)
except TypeError:
msg = f"{option_name} from {source} must be a valid StrPath"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
def get_path_list_from_config(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:288
@@ -285,7 +285,7 @@
return Path(value)
except TypeError:
msg = f"{option_name} from {source} must be a valid StrPath"
- raise PoodleInputError(msg) from None
+ raise None from None
def get_path_list_from_config(
|
||
| 289 | ||
| 290 | ||
| 291 |
def get_path_list_from_config( |
|
| 292 |
option_name: str, |
|
| 293 |
config_data: dict, |
|
| ▸ | 294 |
default: list[Path] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:294
@@ -291,7 +291,7 @@
def get_path_list_from_config(
option_name: str,
config_data: dict,
- default: list[Path] | None = None,
+ default: list[Path] | None = ' ',
command_line: tuple[Path] | None = None,
) -> list[Path]:
"""Retrieve Config Option that should be a List of Paths.
|
||
| ▸ | 295 |
command_line: tuple[Path] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:295
@@ -292,7 +292,7 @@
option_name: str,
config_data: dict,
default: list[Path] | None = None,
- command_line: tuple[Path] | None = None,
+ command_line: tuple[Path] | None = ' ',
) -> list[Path]:
"""Retrieve Config Option that should be a List of Paths.
|
||
| 296 |
) -> list[Path]: |
|
| 297 |
"""Retrieve Config Option that should be a List of Paths. |
|
| 298 | ||
| 299 |
Retrieve highest priority value from config sources. |
|
| 300 |
If input was a single Path, return as a list of Paths. |
|
| 301 |
Convert input Iterable to List. |
|
| 302 |
""" |
|
| ▸ | 303 |
default_fix = default or [] |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:303
@@ -300,7 +300,7 @@
If input was a single Path, return as a list of Paths.
Convert input Iterable to List.
"""
- default_fix = default or []
+ default_fix = default and []
command_line_fix = command_line or ()
values, source = get_option_from_config(
|
||
| ▸ | 304 |
command_line_fix = command_line or () |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:304
@@ -301,7 +301,7 @@
Convert input Iterable to List.
"""
default_fix = default or []
- command_line_fix = command_line or ()
+ command_line_fix = command_line and ()
values, source = get_option_from_config(
option_name=option_name,
|
||
| 305 | ||
| ▸ | 306 |
values, source = get_option_from_config( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:306
@@ -303,11 +303,7 @@
default_fix = default or []
command_line_fix = command_line or ()
- values, source = get_option_from_config(
- option_name=option_name,
- config_data=config_data,
- command_line=command_line_fix,
- )
+ values, source = None
if values is None:
return default_fix
|
||
| 307 |
option_name=option_name, |
|
| 308 |
config_data=config_data, |
|
| 309 |
command_line=command_line_fix, |
|
| 310 |
) |
|
| 311 | ||
| ▸ | 312 |
if values is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:312
@@ -309,7 +309,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is not None:
return default_fix
try:
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:312
@@ -309,7 +309,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is ' ':
return default_fix
try:
|
||
| ▸ | 313 |
return default_fix |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:313
@@ -310,7 +310,7 @@
)
if values is None:
- return default_fix
+ return None
try:
if isinstance(values, Path):
|
||
| 314 | ||
| 315 |
try: |
|
| ▸ | 316 |
if isinstance(values, Path): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:316
@@ -313,7 +313,7 @@
return default_fix
try:
- if isinstance(values, Path):
+ if None:
return [values]
if isinstance(values, str):
|
||
| ▸ | 317 |
return [values] |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:317
@@ -314,7 +314,7 @@
try:
if isinstance(values, Path):
- return [values]
+ return None
if isinstance(values, str):
return [Path(values)]
|
||
| 318 | ||
| ▸ | 319 |
if isinstance(values, str): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:319
@@ -316,7 +316,7 @@
if isinstance(values, Path):
return [values]
- if isinstance(values, str):
+ if None:
return [Path(values)]
return [Path(value) for value in values]
|
||
| ▸ | 320 |
return [Path(values)] |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:320
@@ -317,7 +317,7 @@
return [values]
if isinstance(values, str):
- return [Path(values)]
+ return [None]
return [Path(value) for value in values]
except TypeError:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:320
@@ -317,7 +317,7 @@
return [values]
if isinstance(values, str):
- return [Path(values)]
+ return None
return [Path(value) for value in values]
except TypeError:
|
||
| 321 | ||
| ▸ | 322 |
return [Path(value) for value in values] |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:322
@@ -319,7 +319,7 @@
if isinstance(values, str):
return [Path(values)]
- return [Path(value) for value in values]
+ return [None for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:322
@@ -319,7 +319,7 @@
if isinstance(values, str):
return [Path(values)]
- return [Path(value) for value in values]
+ return None
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
raise PoodleInputError(msg) from None
|
||
| 323 |
except TypeError: |
|
| ▸ | 324 |
msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:324
@@ -321,7 +321,7 @@
return [Path(value) for value in values]
except TypeError:
- msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
+ msg = f"{option_name}'XX from XX'{source} must be a valid Iterable[StrPath]"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:324
@@ -321,7 +321,7 @@
return [Path(value) for value in values]
except TypeError:
- msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
+ msg = f"{option_name} from {source}'XX must be a valid Iterable[StrPath]XX'"
raise PoodleInputError(msg) from None
|
||
| ▸ | 325 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:325
@@ -322,7 +322,7 @@
return [Path(value) for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
def get_any_from_config(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:325
@@ -322,7 +322,7 @@
return [Path(value) for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[StrPath]"
- raise PoodleInputError(msg) from None
+ raise None from None
def get_any_from_config(
|
||
| 326 | ||
| 327 | ||
| 328 |
def get_any_from_config( |
|
| 329 |
option_name: str, |
|
| 330 |
config_data: dict, |
|
| ▸ | 331 |
default: Any = None, # noqa: ANN401 |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:331
@@ -328,7 +328,7 @@
def get_any_from_config(
option_name: str,
config_data: dict,
- default: Any = None, # noqa: ANN401
+ default: Any = ' ', # noqa: ANN401
command_line: Any | None = None, # noqa: ANN401
) -> Any: # noqa: ANN401
"""Retrieve Config Option that can by any type.
|
||
| ▸ | 332 |
command_line: Any | None = None, # noqa: ANN401 |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:332
@@ -329,7 +329,7 @@
option_name: str,
config_data: dict,
default: Any = None, # noqa: ANN401
- command_line: Any | None = None, # noqa: ANN401
+ command_line: Any | None = ' ', # noqa: ANN401
) -> Any: # noqa: ANN401
"""Retrieve Config Option that can by any type.
|
||
| 333 |
) -> Any: # noqa: ANN401 |
|
| 334 |
"""Retrieve Config Option that can by any type. |
|
| 335 | ||
| 336 |
Retrieve highest priority value from config sources. |
|
| 337 |
""" |
|
| ▸ | 338 |
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:338
@@ -335,7 +335,7 @@
Retrieve highest priority value from config sources.
"""
- value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
+ value, _ = None
if value is None:
return default
|
||
| 339 | ||
| ▸ | 340 |
if value is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:340
@@ -337,7 +337,7 @@
"""
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is not None:
return default
return value
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:340
@@ -337,7 +337,7 @@
"""
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is ' ':
return default
return value
|
||
| ▸ | 341 |
return default |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:341
@@ -338,7 +338,7 @@
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
if value is None:
- return default
+ return None
return value
|
||
| ▸ | 342 |
return value |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:342
@@ -339,7 +339,7 @@
if value is None:
return default
- return value
+ return None
def get_any_list_from_config(
|
||
| 343 | ||
| 344 | ||
| 345 |
def get_any_list_from_config( |
|
| 346 |
option_name: str, |
|
| 347 |
config_data: dict, |
|
| ▸ | 348 |
default: list[Any] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:348
@@ -345,7 +345,7 @@
def get_any_list_from_config(
option_name: str,
config_data: dict,
- default: list[Any] | None = None,
+ default: list[Any] | None = ' ',
command_line: tuple[Any] | None = None,
) -> list[Any]:
"""Retrieve Config Option that should be a List of any types.
|
||
| ▸ | 349 |
command_line: tuple[Any] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:349
@@ -346,7 +346,7 @@
option_name: str,
config_data: dict,
default: list[Any] | None = None,
- command_line: tuple[Any] | None = None,
+ command_line: tuple[Any] | None = ' ',
) -> list[Any]:
"""Retrieve Config Option that should be a List of any types.
|
||
| 350 |
) -> list[Any]: |
|
| 351 |
"""Retrieve Config Option that should be a List of any types. |
|
| 352 | ||
| 353 |
Retrieve highest priority value from config sources. |
|
| 354 |
Convert input Iterable to List. |
|
| 355 |
""" |
|
| ▸ | 356 |
default_fix = default or [] |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:356
@@ -353,7 +353,7 @@
Retrieve highest priority value from config sources.
Convert input Iterable to List.
"""
- default_fix = default or []
+ default_fix = default and []
command_line_fix = command_line or ()
values, _ = get_option_from_config(
|
||
| ▸ | 357 |
command_line_fix = command_line or () |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:357
@@ -354,7 +354,7 @@
Convert input Iterable to List.
"""
default_fix = default or []
- command_line_fix = command_line or ()
+ command_line_fix = command_line and ()
values, _ = get_option_from_config(
option_name=option_name,
|
||
| 358 | ||
| ▸ | 359 |
values, _ = get_option_from_config( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:359
@@ -356,11 +356,7 @@
default_fix = default or []
command_line_fix = command_line or ()
- values, _ = get_option_from_config(
- option_name=option_name,
- config_data=config_data,
- command_line=command_line_fix,
- )
+ values, _ = None
if values is None:
return default_fix
|
||
| 360 |
option_name=option_name, |
|
| 361 |
config_data=config_data, |
|
| 362 |
command_line=command_line_fix, |
|
| 363 |
) |
|
| 364 | ||
| ▸ | 365 |
if values is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:365
@@ -362,7 +362,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is not None:
return default_fix
if isinstance(values, str):
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:365
@@ -362,7 +362,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is ' ':
return default_fix
if isinstance(values, str):
|
||
| ▸ | 366 |
return default_fix |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:366
@@ -363,7 +363,7 @@
)
if values is None:
- return default_fix
+ return None
if isinstance(values, str):
return [values]
|
||
| 367 | ||
| ▸ | 368 |
if isinstance(values, str): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:368
@@ -365,7 +365,7 @@
if values is None:
return default_fix
- if isinstance(values, str):
+ if None:
return [values]
if isinstance(values, Iterable):
|
||
| ▸ | 369 |
return [values] |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:369
@@ -366,7 +366,7 @@
return default_fix
if isinstance(values, str):
- return [values]
+ return None
if isinstance(values, Iterable):
return list(values)
|
||
| 370 | ||
| ▸ | 371 |
if isinstance(values, Iterable): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:371
@@ -368,7 +368,7 @@
if isinstance(values, str):
return [values]
- if isinstance(values, Iterable):
+ if None:
return list(values)
return [values]
|
||
| ▸ | 372 |
return list(values) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:372
@@ -369,7 +369,7 @@
return [values]
if isinstance(values, Iterable):
- return list(values)
+ return None
return [values]
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:372
@@ -369,7 +369,7 @@
return [values]
if isinstance(values, Iterable):
- return list(values)
+ return None
return [values]
|
||
| 373 | ||
| ▸ | 374 |
return [values] |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:374
@@ -371,7 +371,7 @@
if isinstance(values, Iterable):
return list(values)
- return [values]
+ return None
def get_int_from_config(
|
||
| 375 | ||
| 376 | ||
| 377 |
def get_int_from_config( |
|
| 378 |
option_name: str, |
|
| 379 |
config_data: dict, |
|
| ▸ | 380 |
default: int | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:380
@@ -377,7 +377,7 @@
def get_int_from_config(
option_name: str,
config_data: dict,
- default: int | None = None,
+ default: int | None = ' ',
command_line: int | None = None,
) -> int | None:
"""Retrieve Config Option that should be an int or None.
|
||
| ▸ | 381 |
command_line: int | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:381
@@ -378,7 +378,7 @@
option_name: str,
config_data: dict,
default: int | None = None,
- command_line: int | None = None,
+ command_line: int | None = ' ',
) -> int | None:
"""Retrieve Config Option that should be an int or None.
|
||
| 382 |
) -> int | None: |
|
| 383 |
"""Retrieve Config Option that should be an int or None. |
|
| 384 | ||
| 385 |
Retrieve highest priority value from config sources. |
|
| 386 |
""" |
|
| ▸ | 387 |
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:387
@@ -384,7 +384,7 @@
Retrieve highest priority value from config sources.
"""
- value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
+ value, source = None
if value is None:
return default
|
||
| 388 | ||
| ▸ | 389 |
if value is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:389
@@ -386,7 +386,7 @@
"""
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is not None:
return default
try:
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:389
@@ -386,7 +386,7 @@
"""
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is ' ':
return default
try:
|
||
| ▸ | 390 |
return default |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:390
@@ -387,7 +387,7 @@
value, source = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
if value is None:
- return default
+ return None
try:
return int(value)
|
||
| 391 | ||
| 392 |
try: |
|
| ▸ | 393 |
return int(value) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:393
@@ -390,7 +390,7 @@
return default
try:
- return int(value)
+ return None
except ValueError:
msg = f"{option_name} from {source} must be a valid int"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:393
@@ -390,7 +390,7 @@
return default
try:
- return int(value)
+ return None
except ValueError:
msg = f"{option_name} from {source} must be a valid int"
raise PoodleInputError(msg) from None
|
||
| 394 |
except ValueError: |
|
| ▸ | 395 |
msg = f"{option_name} from {source} must be a valid int"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:395
@@ -392,7 +392,7 @@
try:
return int(value)
except ValueError:
- msg = f"{option_name} from {source} must be a valid int"
+ msg = f"{option_name}'XX from XX'{source} must be a valid int"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:395
@@ -392,7 +392,7 @@
try:
return int(value)
except ValueError:
- msg = f"{option_name} from {source} must be a valid int"
+ msg = f"{option_name} from {source}'XX must be a valid intXX'"
raise PoodleInputError(msg) from None
|
||
| ▸ | 396 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:396
@@ -393,7 +393,7 @@
return int(value)
except ValueError:
msg = f"{option_name} from {source} must be a valid int"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
def get_str_from_config(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:396
@@ -393,7 +393,7 @@
return int(value)
except ValueError:
msg = f"{option_name} from {source} must be a valid int"
- raise PoodleInputError(msg) from None
+ raise None from None
def get_str_from_config(
|
||
| 397 | ||
| 398 | ||
| 399 |
def get_str_from_config( |
|
| 400 |
option_name: str, |
|
| 401 |
config_data: dict, |
|
| ▸ | 402 |
default: str = "", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:402
@@ -399,7 +399,7 @@
def get_str_from_config(
option_name: str,
config_data: dict,
- default: str = "",
+ default: str = 'XXXX',
command_line: str = "",
) -> str:
"""Retrieve Config Option that should be a String.
|
||
| ▸ | 403 |
command_line: str = "", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:403
@@ -400,7 +400,7 @@
option_name: str,
config_data: dict,
default: str = "",
- command_line: str = "",
+ command_line: str = 'XXXX',
) -> str:
"""Retrieve Config Option that should be a String.
|
||
| 404 |
) -> str: |
|
| 405 |
"""Retrieve Config Option that should be a String. |
|
| 406 | ||
| 407 |
Retrieve highest priority value from config sources. |
|
| 408 |
""" |
|
| ▸ | 409 |
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:409
@@ -406,7 +406,7 @@
Retrieve highest priority value from config sources.
"""
- value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
+ value, _ = None
if value is None:
return default
|
||
| 410 | ||
| ▸ | 411 |
if value is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:411
@@ -408,7 +408,7 @@
"""
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is not None:
return default
return str(value)
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:411
@@ -408,7 +408,7 @@
"""
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
- if value is None:
+ if value is ' ':
return default
return str(value)
|
||
| ▸ | 412 |
return default |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:412
@@ -409,7 +409,7 @@
value, _ = get_option_from_config(option_name=option_name, config_data=config_data, command_line=command_line)
if value is None:
- return default
+ return None
return str(value)
|
||
| 413 | ||
| ▸ | 414 |
return str(value) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:414
@@ -411,7 +411,7 @@
if value is None:
return default
- return str(value)
+ return None
def get_str_list_from_config(
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:414
@@ -411,7 +411,7 @@
if value is None:
return default
- return str(value)
+ return None
def get_str_list_from_config(
|
||
| 415 | ||
| 416 | ||
| 417 |
def get_str_list_from_config( |
|
| 418 |
option_name: str, |
|
| 419 |
config_data: dict, |
|
| ▸ | 420 |
default: list[str] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:420
@@ -417,7 +417,7 @@
def get_str_list_from_config(
option_name: str,
config_data: dict,
- default: list[str] | None = None,
+ default: list[str] | None = ' ',
command_line: str | tuple[str] | None = None,
) -> list[str]:
"""Retrieve Config Option that should be a List of Strings.
|
||
| ▸ | 421 |
command_line: str | tuple[str] | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:421
@@ -418,7 +418,7 @@
option_name: str,
config_data: dict,
default: list[str] | None = None,
- command_line: str | tuple[str] | None = None,
+ command_line: str | tuple[str] | None = ' ',
) -> list[str]:
"""Retrieve Config Option that should be a List of Strings.
|
||
| 422 |
) -> list[str]: |
|
| 423 |
"""Retrieve Config Option that should be a List of Strings. |
|
| 424 | ||
| 425 |
Retrieve highest priority value from config sources. |
|
| 426 |
If input was a single string, return as a list of strings. |
|
| 427 |
Convert input Iterable to List. |
|
| 428 |
""" |
|
| ▸ | 429 |
default_fix = default or [] |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:429
@@ -426,7 +426,7 @@
If input was a single string, return as a list of strings.
Convert input Iterable to List.
"""
- default_fix = default or []
+ default_fix = default and []
command_line_fix = command_line or ()
values, source = get_option_from_config(
|
||
| ▸ | 430 |
command_line_fix = command_line or () |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:430
@@ -427,7 +427,7 @@
Convert input Iterable to List.
"""
default_fix = default or []
- command_line_fix = command_line or ()
+ command_line_fix = command_line and ()
values, source = get_option_from_config(
option_name=option_name,
|
||
| 431 | ||
| ▸ | 432 |
values, source = get_option_from_config( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:432
@@ -429,11 +429,7 @@
default_fix = default or []
command_line_fix = command_line or ()
- values, source = get_option_from_config(
- option_name=option_name,
- config_data=config_data,
- command_line=command_line_fix,
- )
+ values, source = None
if values is None:
return default_fix
|
||
| 433 |
option_name=option_name, |
|
| 434 |
config_data=config_data, |
|
| 435 |
command_line=command_line_fix, |
|
| 436 |
) |
|
| 437 | ||
| ▸ | 438 |
if values is None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:438
@@ -435,7 +435,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is not None:
return default_fix
if isinstance(values, str):
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:438
@@ -435,7 +435,7 @@
command_line=command_line_fix,
)
- if values is None:
+ if values is ' ':
return default_fix
if isinstance(values, str):
|
||
| ▸ | 439 |
return default_fix |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:439
@@ -436,7 +436,7 @@
)
if values is None:
- return default_fix
+ return None
if isinstance(values, str):
return [values]
|
||
| 440 | ||
| ▸ | 441 |
if isinstance(values, str): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:441
@@ -438,7 +438,7 @@
if values is None:
return default_fix
- if isinstance(values, str):
+ if None:
return [values]
try:
|
||
| ▸ | 442 |
return [values] |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:442
@@ -439,7 +439,7 @@
return default_fix
if isinstance(values, str):
- return [values]
+ return None
try:
return [str(value) for value in values]
|
||
| 443 | ||
| 444 |
try: |
|
| ▸ | 445 |
return [str(value) for value in values] |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:445
@@ -442,7 +442,7 @@
return [values]
try:
- return [str(value) for value in values]
+ return [None for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[str]"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:445
@@ -442,7 +442,7 @@
return [values]
try:
- return [str(value) for value in values]
+ return None
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[str]"
raise PoodleInputError(msg) from None
|
||
| 446 |
except TypeError: |
|
| ▸ | 447 |
msg = f"{option_name} from {source} must be a valid Iterable[str]"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:447
@@ -444,7 +444,7 @@
try:
return [str(value) for value in values]
except TypeError:
- msg = f"{option_name} from {source} must be a valid Iterable[str]"
+ msg = f"{option_name}'XX from XX'{source} must be a valid Iterable[str]"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:447
@@ -444,7 +444,7 @@
try:
return [str(value) for value in values]
except TypeError:
- msg = f"{option_name} from {source} must be a valid Iterable[str]"
+ msg = f"{option_name} from {source}'XX must be a valid Iterable[str]XX'"
raise PoodleInputError(msg) from None
|
||
| ▸ | 448 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:448
@@ -445,7 +445,7 @@
return [str(value) for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[str]"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
def get_option_from_config(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:448
@@ -445,7 +445,7 @@
return [str(value) for value in values]
except TypeError:
msg = f"{option_name} from {source} must be a valid Iterable[str]"
- raise PoodleInputError(msg) from None
+ raise None from None
def get_option_from_config(
|
||
| 449 | ||
| 450 | ||
| 451 |
def get_option_from_config( |
|
| 452 |
option_name: str, |
|
| 453 |
config_data: dict, |
|
| 454 |
command_line: Any, # noqa: ANN401 |
|
| 455 |
) -> tuple[Any | None, str | None]: |
|
| 456 |
"""Retrieve Config Option of any type. |
|
| 457 | ||
| 458 |
Check sources in priority order, and return the first one found. |
|
| 459 | ||
| 460 |
Priority Order: Command Line, poodle_config.py, config file |
|
| 461 | ||
| 462 |
Returns: Identified Config value, Source Name |
|
| 463 |
""" |
|
| ▸ | 464 |
if command_line or command_line is False: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:464
@@ -461,7 +461,7 @@
Returns: Identified Config value, Source Name
"""
- if command_line or command_line is False:
+ if command_line and command_line is False:
return command_line, "Command Line"
if hasattr(poodle_config, option_name):
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:464
@@ -461,7 +461,7 @@
Returns: Identified Config value, Source Name
"""
- if command_line or command_line is False:
+ if command_line or command_line is True:
return command_line, "Command Line"
if hasattr(poodle_config, option_name):
|
||
| ▸ | 465 |
return command_line, "Command Line" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:465
@@ -462,7 +462,7 @@
Returns: Identified Config value, Source Name
"""
if command_line or command_line is False:
- return command_line, "Command Line"
+ return command_line, 'XXCommand LineXX'
if hasattr(poodle_config, option_name):
return getattr(poodle_config, option_name), "poodle_config.py"
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:465
@@ -462,7 +462,7 @@
Returns: Identified Config value, Source Name
"""
if command_line or command_line is False:
- return command_line, "Command Line"
+ return None
if hasattr(poodle_config, option_name):
return getattr(poodle_config, option_name), "poodle_config.py"
|
||
| 466 | ||
| ▸ | 467 |
if hasattr(poodle_config, option_name): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:467
@@ -464,7 +464,7 @@
if command_line or command_line is False:
return command_line, "Command Line"
- if hasattr(poodle_config, option_name):
+ if None:
return getattr(poodle_config, option_name), "poodle_config.py"
if option_name in config_data:
|
||
| ▸ | 468 |
return getattr(poodle_config, option_name), "poodle_config.py" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:468
@@ -465,7 +465,7 @@
return command_line, "Command Line"
if hasattr(poodle_config, option_name):
- return getattr(poodle_config, option_name), "poodle_config.py"
+ return getattr(poodle_config, option_name), 'XXpoodle_config.pyXX'
if option_name in config_data:
return config_data[option_name], "config file"
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:468
@@ -465,7 +465,7 @@
return command_line, "Command Line"
if hasattr(poodle_config, option_name):
- return getattr(poodle_config, option_name), "poodle_config.py"
+ return None, "poodle_config.py"
if option_name in config_data:
return config_data[option_name], "config file"
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:468
@@ -465,7 +465,7 @@
return command_line, "Command Line"
if hasattr(poodle_config, option_name):
- return getattr(poodle_config, option_name), "poodle_config.py"
+ return None
if option_name in config_data:
return config_data[option_name], "config file"
|
||
| 469 | ||
| ▸ | 470 |
if option_name in config_data: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:470
@@ -467,7 +467,7 @@
if hasattr(poodle_config, option_name):
return getattr(poodle_config, option_name), "poodle_config.py"
- if option_name in config_data:
+ if option_name not in config_data:
return config_data[option_name], "config file"
return None, None
|
||
| ▸ | 471 |
return config_data[option_name], "config file" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:471
@@ -468,7 +468,7 @@
return getattr(poodle_config, option_name), "poodle_config.py"
if option_name in config_data:
- return config_data[option_name], "config file"
+ return config_data[option_name], 'XXconfig fileXX'
return None, None
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:471
@@ -468,7 +468,7 @@
return getattr(poodle_config, option_name), "poodle_config.py"
if option_name in config_data:
- return config_data[option_name], "config file"
+ return None, "config file"
return None, None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:471
@@ -468,7 +468,7 @@
return getattr(poodle_config, option_name), "poodle_config.py"
if option_name in config_data:
- return config_data[option_name], "config file"
+ return None
return None, None
|
||
| 472 | ||
| ▸ | 473 |
return None, None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:473
@@ -470,7 +470,7 @@
if option_name in config_data:
return config_data[option_name], "config file"
- return None, None
+ return ' ', None
def get_dict_from_config(
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:473
@@ -470,7 +470,7 @@
if option_name in config_data:
return config_data[option_name], "config file"
- return None, None
+ return None, ' '
def get_dict_from_config(
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:473
@@ -470,7 +470,7 @@
if option_name in config_data:
return config_data[option_name], "config file"
- return None, None
+ return None
def get_dict_from_config(
|
||
| 474 | ||
| 475 | ||
| 476 |
def get_dict_from_config( |
|
| 477 |
option_name: str, |
|
| 478 |
config_data: dict, |
|
| ▸ | 479 |
default: dict | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:479
@@ -476,7 +476,7 @@
def get_dict_from_config(
option_name: str,
config_data: dict,
- default: dict | None = None,
+ default: dict | None = ' ',
command_line: dict | None = None,
) -> dict:
"""Merge Key-Value pairs from Config sources to a dict.
|
||
| ▸ | 480 |
command_line: dict | None = None, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:480
@@ -477,7 +477,7 @@
option_name: str,
config_data: dict,
default: dict | None = None,
- command_line: dict | None = None,
+ command_line: dict | None = ' ',
) -> dict:
"""Merge Key-Value pairs from Config sources to a dict.
|
||
| 481 |
) -> dict: |
|
| 482 |
"""Merge Key-Value pairs from Config sources to a dict. |
|
| 483 | ||
| 484 |
Builds dict by starting with values from lowest priority source. |
|
| 485 |
Then 'updating' them with values from higher priority sources. |
|
| 486 | ||
| 487 |
Priority Order: Command Line, poodle_config.py, config file, defaults |
|
| 488 |
""" |
|
| ▸ | 489 |
default = default or {}
|
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:489
@@ -486,7 +486,7 @@
Priority Order: Command Line, poodle_config.py, config file, defaults
"""
- default = default or {}
+ default = default and {}
command_line = command_line or {}
option_value = default
|
||
| ▸ | 490 |
command_line = command_line or {}
|
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:490
@@ -487,7 +487,7 @@
Priority Order: Command Line, poodle_config.py, config file, defaults
"""
default = default or {}
- command_line = command_line or {}
+ command_line = command_line and {}
option_value = default
|
||
| 491 | ||
| 492 |
option_value = default |
|
| 493 | ||
| ▸ | 494 |
if option_name in config_data: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:494
@@ -491,7 +491,7 @@
option_value = default
- if option_name in config_data:
+ if option_name not in config_data:
try:
option_value.update(config_data[option_name])
except ValueError:
|
||
| 495 |
try: |
|
| ▸ | 496 |
option_value.update(config_data[option_name]) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:496
@@ -493,7 +493,7 @@
if option_name in config_data:
try:
- option_value.update(config_data[option_name])
+ None
except ValueError:
msg = f"{option_name} in config file must be a valid dict"
raise PoodleInputError(msg) from None
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:496
@@ -493,7 +493,7 @@
if option_name in config_data:
try:
- option_value.update(config_data[option_name])
+ option_value.update(None)
except ValueError:
msg = f"{option_name} in config file must be a valid dict"
raise PoodleInputError(msg) from None
|
||
| 497 |
except ValueError: |
|
| ▸ | 498 |
msg = f"{option_name} in config file must be a valid dict"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:498
@@ -495,7 +495,7 @@
try:
option_value.update(config_data[option_name])
except ValueError:
- msg = f"{option_name} in config file must be a valid dict"
+ msg = f"{option_name}'XX in config file must be a valid dictXX'"
raise PoodleInputError(msg) from None
if hasattr(poodle_config, option_name):
|
||
| ▸ | 499 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:499
@@ -496,7 +496,7 @@
option_value.update(config_data[option_name])
except ValueError:
msg = f"{option_name} in config file must be a valid dict"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
if hasattr(poodle_config, option_name):
try:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:499
@@ -496,7 +496,7 @@
option_value.update(config_data[option_name])
except ValueError:
msg = f"{option_name} in config file must be a valid dict"
- raise PoodleInputError(msg) from None
+ raise None from None
if hasattr(poodle_config, option_name):
try:
|
||
| 500 | ||
| ▸ | 501 |
if hasattr(poodle_config, option_name): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:501
@@ -498,7 +498,7 @@
msg = f"{option_name} in config file must be a valid dict"
raise PoodleInputError(msg) from None
- if hasattr(poodle_config, option_name):
+ if None:
try:
option_value.update(getattr(poodle_config, option_name))
except ValueError:
|
||
| 502 |
try: |
|
| ▸ | 503 |
option_value.update(getattr(poodle_config, option_name)) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:503
@@ -500,7 +500,7 @@
if hasattr(poodle_config, option_name):
try:
- option_value.update(getattr(poodle_config, option_name))
+ None
except ValueError:
msg = f"poodle_config.{option_name} must be a valid dict"
raise PoodleInputError(msg) from None
|
||
| 504 |
except ValueError: |
|
| ▸ | 505 |
msg = f"poodle_config.{option_name} must be a valid dict"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:505
@@ -502,7 +502,7 @@
try:
option_value.update(getattr(poodle_config, option_name))
except ValueError:
- msg = f"poodle_config.{option_name} must be a valid dict"
+ msg = f"'XXpoodle_config.XX'{option_name} must be a valid dict"
raise PoodleInputError(msg) from None
if command_line:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:505
@@ -502,7 +502,7 @@
try:
option_value.update(getattr(poodle_config, option_name))
except ValueError:
- msg = f"poodle_config.{option_name} must be a valid dict"
+ msg = f"poodle_config.{option_name}'XX must be a valid dictXX'"
raise PoodleInputError(msg) from None
if command_line:
|
||
| ▸ | 506 |
raise PoodleInputError(msg) from None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:506
@@ -503,7 +503,7 @@
option_value.update(getattr(poodle_config, option_name))
except ValueError:
msg = f"poodle_config.{option_name} must be a valid dict"
- raise PoodleInputError(msg) from None
+ raise PoodleInputError(msg) from ' '
if command_line:
option_value.update(command_line)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:506
@@ -503,7 +503,7 @@
option_value.update(getattr(poodle_config, option_name))
except ValueError:
msg = f"poodle_config.{option_name} must be a valid dict"
- raise PoodleInputError(msg) from None
+ raise None from None
if command_line:
option_value.update(command_line)
|
||
| 507 | ||
| 508 |
if command_line: |
|
| ▸ | 509 |
option_value.update(command_line) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:509
@@ -506,6 +506,6 @@
raise PoodleInputError(msg) from None
if command_line:
- option_value.update(command_line)
+ None
return option_value
|
||
| 510 | ||
| ▸ | 511 |
return option_value |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\config.py
+++ [Mutant] src\poodle\config.py:511
@@ -508,4 +508,4 @@
if command_line:
option_value.update(command_line)
- return option_value
+ return None
|