| 1 |
"""Shared Data Classes used by Poodle.""" |
|
| 2 | ||
| 3 |
from __future__ import annotations |
|
| 4 | ||
| 5 |
from dataclasses import asdict, dataclass |
|
| 6 |
from pathlib import Path |
|
| 7 |
from typing import TYPE_CHECKING, Any |
|
| 8 | ||
| 9 |
if TYPE_CHECKING: |
|
| 10 |
from typing_extensions import Self |
|
| 11 | ||
| 12 | ||
| 13 |
@dataclass |
|
| 14 |
class PoodleSerialize: |
|
| 15 |
"""Base Class for Data Classes that need to be serialized to JSON.""" |
|
| 16 | ||
| ▸ | 17 |
@staticmethod |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:17
@@ -14,10 +14,7 @@
class PoodleSerialize:
"""Base Class for Data Classes that need to be serialized to JSON."""
- @staticmethod
- def from_dict(d: dict[str, Any]) -> dict[str, Any]:
- """Correct fields in Dictionary for JSON deserialization."""
- return d
+ @def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
return d
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 18 |
def from_dict(d: dict[str, Any]) -> dict[str, Any]: |
|
| 19 |
"""Correct fields in Dictionary for JSON deserialization.""" |
|
| ▸ | 20 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:20
@@ -17,7 +17,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- return d
+ return None
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 21 | ||
| 22 |
def to_dict(self) -> dict[str, Any]: |
|
| 23 |
"""Convert to Dictionary for JSON serialization.""" |
|
| ▸ | 24 |
return asdict(self) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:24
@@ -21,7 +21,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- return asdict(self)
+ return None
@dataclass
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:24
@@ -21,7 +21,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- return asdict(self)
+ return None
@dataclass
|
||
| 25 | ||
| 26 | ||
| 27 |
@dataclass |
|
| 28 |
class PoodleConfig: |
|
| 29 |
"""Configuration options resolved from command line and config files.""" |
|
| 30 | ||
| 31 |
project_name: str | None |
|
| 32 |
project_version: str | None |
|
| 33 | ||
| 34 |
config_file: Path | None |
|
| 35 |
source_folders: list[Path] |
|
| 36 | ||
| 37 |
only_files: list[str] |
|
| 38 |
file_flags: int | None |
|
| 39 |
file_filters: list[str] |
|
| 40 | ||
| 41 |
file_copy_flags: int | None |
|
| 42 |
file_copy_filters: list[str] |
|
| 43 |
work_folder: Path |
|
| 44 | ||
| 45 |
max_workers: int | None |
|
| 46 | ||
| 47 |
log_format: str |
|
| 48 |
log_level: int | str |
|
| 49 |
echo_enabled: bool | None |
|
| 50 |
echo_no_color: bool | None |
|
| 51 | ||
| 52 |
mutator_opts: dict |
|
| 53 |
skip_mutators: list[str] |
|
| 54 |
add_mutators: list[Any] |
|
| 55 | ||
| 56 |
min_timeout: int |
|
| 57 |
timeout_multiplier: int |
|
| 58 |
runner: str |
|
| 59 |
runner_opts: dict |
|
| 60 | ||
| 61 |
reporters: list[str] |
|
| 62 |
reporter_opts: dict |
|
| 63 | ||
| 64 | ||
| 65 |
@dataclass |
|
| 66 |
class FileMutation: |
|
| 67 |
"""Mutation instructions for the current file.""" |
|
| 68 | ||
| 69 |
mutator_name: str |
|
| 70 |
lineno: int |
|
| 71 |
col_offset: int |
|
| 72 |
end_lineno: int |
|
| 73 |
end_col_offset: int |
|
| 74 |
text: str |
|
| 75 | ||
| 76 | ||
| 77 |
@dataclass |
|
| 78 |
class Mutant(FileMutation, PoodleSerialize): |
|
| 79 |
"""Mutation instructions for a specific file and folder.""" |
|
| 80 | ||
| 81 |
source_folder: Path |
|
| 82 |
source_file: Path | None |
|
| ▸ | 83 |
unified_diff: str | None = None |
|
Status: Mutant Not Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:83
@@ -80,7 +80,7 @@
source_folder: Path
source_file: Path | None
- unified_diff: str | None = None
+ unified_diff: str | None = ' '
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
|
||
| 84 | ||
| ▸ | 85 |
@staticmethod |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:85
@@ -82,14 +82,7 @@
source_file: Path | None
unified_diff: str | None = None
- @staticmethod
- def from_dict(d: dict[str, Any]) -> dict[str, Any]:
- """Correct fields in Dictionary for JSON deserialization."""
- if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
- return d
+ @def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if 'source_folder' in d:
d['source_folder'] = Path(d['source_folder'])
if 'source_file' in d and d['source_folder'] is not None:
d['source_file'] = Path(d['source_file'])
return d
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 86 |
def from_dict(d: dict[str, Any]) -> dict[str, Any]: |
|
| 87 |
"""Correct fields in Dictionary for JSON deserialization.""" |
|
| ▸ | 88 |
if "source_folder" in d: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:88
@@ -85,7 +85,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "source_folder" in d:
+ if 'source_folder' not in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:88
@@ -85,7 +85,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "source_folder" in d:
+ if 'XXsource_folderXX' in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
|
||
| ▸ | 89 |
d["source_folder"] = Path(d["source_folder"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:89
@@ -86,7 +86,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
+ d['XXsource_folderXX'] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:89
@@ -86,7 +86,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
+ d["source_folder"] = Path(d['XXsource_folderXX'])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:89
@@ -86,7 +86,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
+ d["source_folder"] = None
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:89
@@ -86,7 +86,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
+ None = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:89
@@ -86,7 +86,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
- d["source_folder"] = Path(d["source_folder"])
+ d["source_folder"] = Path(None)
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
|
||
| ▸ | 90 |
if "source_file" in d and d["source_folder"] is not None: |
|
Status: Mutant Not Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:90
@@ -87,7 +87,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
+ if 'source_file' in d or d['source_folder'] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Not Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:90
@@ -87,7 +87,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
+ if "source_file" in d and d["source_folder"] is not ' ':
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:90
@@ -87,7 +87,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
+ if 'XXsource_fileXX' in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:90
@@ -87,7 +87,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
+ if "source_file" in d and d['XXsource_folderXX'] is not None:
d["source_file"] = Path(d["source_file"])
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:90
@@ -87,7 +87,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
- if "source_file" in d and d["source_folder"] is not None:
+ if "source_file" in d and None is not None:
d["source_file"] = Path(d["source_file"])
return d
|
||
| ▸ | 91 |
d["source_file"] = Path(d["source_file"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:91
@@ -88,7 +88,7 @@
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
+ d['XXsource_fileXX'] = Path(d["source_file"])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:91
@@ -88,7 +88,7 @@
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
+ d["source_file"] = Path(d['XXsource_fileXX'])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:91
@@ -88,7 +88,7 @@
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
+ d["source_file"] = None
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:91
@@ -88,7 +88,7 @@
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
+ None = Path(d["source_file"])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:91
@@ -88,7 +88,7 @@
if "source_folder" in d:
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
- d["source_file"] = Path(d["source_file"])
+ d["source_file"] = Path(None)
return d
def to_dict(self) -> dict[str, Any]:
|
||
| ▸ | 92 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:92
@@ -89,7 +89,7 @@
d["source_folder"] = Path(d["source_folder"])
if "source_file" in d and d["source_folder"] is not None:
d["source_file"] = Path(d["source_file"])
- return d
+ return None
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 93 | ||
| 94 |
def to_dict(self) -> dict[str, Any]: |
|
| 95 |
"""Convert to Dictionary for JSON serialization.""" |
|
| ▸ | 96 |
d = asdict(self) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:96
@@ -93,7 +93,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- d = asdict(self)
+ d = None
d["source_folder"] = str(self.source_folder)
if isinstance(self.source_file, Path):
d["source_file"] = str(self.source_file)
|
||
| ▸ | 97 |
d["source_folder"] = str(self.source_folder) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:97
@@ -94,7 +94,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["source_folder"] = str(self.source_folder)
+ d['XXsource_folderXX'] = str(self.source_folder)
if isinstance(self.source_file, Path):
d["source_file"] = str(self.source_file)
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:97
@@ -94,7 +94,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["source_folder"] = str(self.source_folder)
+ d["source_folder"] = None
if isinstance(self.source_file, Path):
d["source_file"] = str(self.source_file)
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:97
@@ -94,7 +94,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["source_folder"] = str(self.source_folder)
+ None = str(self.source_folder)
if isinstance(self.source_file, Path):
d["source_file"] = str(self.source_file)
return d
|
||
| ▸ | 98 |
if isinstance(self.source_file, Path): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:98
@@ -95,7 +95,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["source_folder"] = str(self.source_folder)
- if isinstance(self.source_file, Path):
+ if None:
d["source_file"] = str(self.source_file)
return d
|
||
| ▸ | 99 |
d["source_file"] = str(self.source_file) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:99
@@ -96,7 +96,7 @@
d = asdict(self)
d["source_folder"] = str(self.source_folder)
if isinstance(self.source_file, Path):
- d["source_file"] = str(self.source_file)
+ d['XXsource_fileXX'] = str(self.source_file)
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:99
@@ -96,7 +96,7 @@
d = asdict(self)
d["source_folder"] = str(self.source_folder)
if isinstance(self.source_file, Path):
- d["source_file"] = str(self.source_file)
+ d["source_file"] = None
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:99
@@ -96,7 +96,7 @@
d = asdict(self)
d["source_folder"] = str(self.source_folder)
if isinstance(self.source_file, Path):
- d["source_file"] = str(self.source_file)
+ None = str(self.source_file)
return d
|
||
| ▸ | 100 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:100
@@ -97,7 +97,7 @@
d["source_folder"] = str(self.source_folder)
if isinstance(self.source_file, Path):
d["source_file"] = str(self.source_file)
- return d
+ return None
@dataclass
|
||
| 101 | ||
| 102 | ||
| 103 |
@dataclass |
|
| 104 |
class MutantTrialResult(PoodleSerialize): |
|
| 105 |
"""Mutation Trial Result for a Mutant.""" |
|
| 106 | ||
| 107 |
found: bool |
|
| 108 |
reason_code: str |
|
| ▸ | 109 |
reason_desc: str | None = None |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:109
@@ -106,7 +106,7 @@
found: bool
reason_code: str
- reason_desc: str | None = None
+ reason_desc: str | None = ' '
RC_FOUND = "Mutant Found"
RC_NOT_FOUND = "Mutant Not Found"
|
||
| 110 | ||
| ▸ | 111 |
RC_FOUND = "Mutant Found" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:111
@@ -108,7 +108,7 @@
reason_code: str
reason_desc: str | None = None
- RC_FOUND = "Mutant Found"
+ RC_FOUND = 'XXMutant FoundXX'
RC_NOT_FOUND = "Mutant Not Found"
RC_TIMEOUT = "Trial Exceeded Timeout"
RC_INCOMPLETE = "Testing Incomplete"
|
||
| ▸ | 112 |
RC_NOT_FOUND = "Mutant Not Found" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:112
@@ -109,7 +109,7 @@
reason_desc: str | None = None
RC_FOUND = "Mutant Found"
- RC_NOT_FOUND = "Mutant Not Found"
+ RC_NOT_FOUND = 'XXMutant Not FoundXX'
RC_TIMEOUT = "Trial Exceeded Timeout"
RC_INCOMPLETE = "Testing Incomplete"
RC_OTHER = "Other, See Description"
|
||
| ▸ | 113 |
RC_TIMEOUT = "Trial Exceeded Timeout" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:113
@@ -110,7 +110,7 @@
RC_FOUND = "Mutant Found"
RC_NOT_FOUND = "Mutant Not Found"
- RC_TIMEOUT = "Trial Exceeded Timeout"
+ RC_TIMEOUT = 'XXTrial Exceeded TimeoutXX'
RC_INCOMPLETE = "Testing Incomplete"
RC_OTHER = "Other, See Description"
|
||
| ▸ | 114 |
RC_INCOMPLETE = "Testing Incomplete" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:114
@@ -111,7 +111,7 @@
RC_FOUND = "Mutant Found"
RC_NOT_FOUND = "Mutant Not Found"
RC_TIMEOUT = "Trial Exceeded Timeout"
- RC_INCOMPLETE = "Testing Incomplete"
+ RC_INCOMPLETE = 'XXTesting IncompleteXX'
RC_OTHER = "Other, See Description"
|
||
| ▸ | 115 |
RC_OTHER = "Other, See Description" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:115
@@ -112,7 +112,7 @@
RC_NOT_FOUND = "Mutant Not Found"
RC_TIMEOUT = "Trial Exceeded Timeout"
RC_INCOMPLETE = "Testing Incomplete"
- RC_OTHER = "Other, See Description"
+ RC_OTHER = 'XXOther, See DescriptionXX'
@dataclass
|
||
| 116 | ||
| 117 | ||
| 118 |
@dataclass |
|
| 119 |
class MutantTrial(PoodleSerialize): |
|
| 120 |
"""Trial Result for a Mutant.""" |
|
| 121 | ||
| 122 |
mutant: Mutant |
|
| 123 |
result: MutantTrialResult |
|
| 124 |
duration: float |
|
| 125 | ||
| ▸ | 126 |
@staticmethod |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:126
@@ -123,14 +123,7 @@
result: MutantTrialResult
duration: float
- @staticmethod
- def from_dict(d: dict[str, Any]) -> dict[str, Any]:
- """Correct fields in Dictionary for JSON deserialization."""
- if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
- if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
- return d
+ @def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if 'mutant' in d:
d['mutant'] = Mutant(**Mutant.from_dict(d['mutant']))
if 'result' in d:
d['result'] = MutantTrialResult(**d['result'])
return d
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 127 |
def from_dict(d: dict[str, Any]) -> dict[str, Any]: |
|
| 128 |
"""Correct fields in Dictionary for JSON deserialization.""" |
|
| ▸ | 129 |
if "mutant" in d: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:129
@@ -126,7 +126,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "mutant" in d:
+ if 'mutant' not in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:129
@@ -126,7 +126,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "mutant" in d:
+ if 'XXmutantXX' in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
|
||
| ▸ | 130 |
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"])) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:130
@@ -127,7 +127,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
+ d['XXmutantXX'] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:130
@@ -127,7 +127,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
+ d["mutant"] = Mutant(**Mutant.from_dict(d['XXmutantXX']))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:130
@@ -127,7 +127,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
+ d["mutant"] = None
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:130
@@ -127,7 +127,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
+ None = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:130
@@ -127,7 +127,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
- d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
+ d["mutant"] = Mutant(**Mutant.from_dict(None))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
return d
|
||
| ▸ | 131 |
if "result" in d: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:131
@@ -128,7 +128,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
- if "result" in d:
+ if 'result' not in d:
d["result"] = MutantTrialResult(**d["result"])
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:131
@@ -128,7 +128,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
- if "result" in d:
+ if 'XXresultXX' in d:
d["result"] = MutantTrialResult(**d["result"])
return d
|
||
| ▸ | 132 |
d["result"] = MutantTrialResult(**d["result"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:132
@@ -129,7 +129,7 @@
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
+ d['XXresultXX'] = MutantTrialResult(**d["result"])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:132
@@ -129,7 +129,7 @@
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
+ d["result"] = MutantTrialResult(**d['XXresultXX'])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:132
@@ -129,7 +129,7 @@
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
+ d["result"] = None
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:132
@@ -129,7 +129,7 @@
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
+ None = MutantTrialResult(**d["result"])
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:132
@@ -129,7 +129,7 @@
if "mutant" in d:
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
- d["result"] = MutantTrialResult(**d["result"])
+ d["result"] = MutantTrialResult(**None)
return d
def to_dict(self) -> dict[str, Any]:
|
||
| ▸ | 133 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:133
@@ -130,7 +130,7 @@
d["mutant"] = Mutant(**Mutant.from_dict(d["mutant"]))
if "result" in d:
d["result"] = MutantTrialResult(**d["result"])
- return d
+ return None
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 134 | ||
| 135 |
def to_dict(self) -> dict[str, Any]: |
|
| 136 |
"""Convert to Dictionary for JSON serialization.""" |
|
| ▸ | 137 |
d = asdict(self) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:137
@@ -134,7 +134,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- d = asdict(self)
+ d = None
d["mutant"] = self.mutant.to_dict()
d["result"] = self.result.to_dict()
return d
|
||
| ▸ | 138 |
d["mutant"] = self.mutant.to_dict() |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:138
@@ -135,7 +135,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant"] = self.mutant.to_dict()
+ d['XXmutantXX'] = self.mutant.to_dict()
d["result"] = self.result.to_dict()
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:138
@@ -135,7 +135,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant"] = self.mutant.to_dict()
+ d["mutant"] = None
d["result"] = self.result.to_dict()
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:138
@@ -135,7 +135,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant"] = self.mutant.to_dict()
+ None = self.mutant.to_dict()
d["result"] = self.result.to_dict()
return d
|
||
| ▸ | 139 |
d["result"] = self.result.to_dict() |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:139
@@ -136,7 +136,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant"] = self.mutant.to_dict()
- d["result"] = self.result.to_dict()
+ d['XXresultXX'] = self.result.to_dict()
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:139
@@ -136,7 +136,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant"] = self.mutant.to_dict()
- d["result"] = self.result.to_dict()
+ d["result"] = None
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:139
@@ -136,7 +136,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant"] = self.mutant.to_dict()
- d["result"] = self.result.to_dict()
+ None = self.result.to_dict()
return d
|
||
| ▸ | 140 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:140
@@ -137,7 +137,7 @@
d = asdict(self)
d["mutant"] = self.mutant.to_dict()
d["result"] = self.result.to_dict()
- return d
+ return None
@dataclass
|
||
| 141 | ||
| 142 | ||
| 143 |
@dataclass |
|
| 144 |
class TestingSummary(PoodleSerialize): |
|
| 145 |
"""Summary Statistics for a Test Run.""" |
|
| 146 | ||
| ▸ | 147 |
trials: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:147
@@ -144,7 +144,7 @@
class TestingSummary(PoodleSerialize):
"""Summary Statistics for a Test Run."""
- trials: int = 0
+ trials: int = 1
tested: int = 0
found: int = 0
not_found: int = 0
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:147
@@ -144,7 +144,7 @@
class TestingSummary(PoodleSerialize):
"""Summary Statistics for a Test Run."""
- trials: int = 0
+ trials: int = -1
tested: int = 0
found: int = 0
not_found: int = 0
|
||
| ▸ | 148 |
tested: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:148
@@ -145,7 +145,7 @@
"""Summary Statistics for a Test Run."""
trials: int = 0
- tested: int = 0
+ tested: int = 1
found: int = 0
not_found: int = 0
timeout: int = 0
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:148
@@ -145,7 +145,7 @@
"""Summary Statistics for a Test Run."""
trials: int = 0
- tested: int = 0
+ tested: int = -1
found: int = 0
not_found: int = 0
timeout: int = 0
|
||
| ▸ | 149 |
found: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:149
@@ -146,7 +146,7 @@
trials: int = 0
tested: int = 0
- found: int = 0
+ found: int = 1
not_found: int = 0
timeout: int = 0
errors: int = 0
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:149
@@ -146,7 +146,7 @@
trials: int = 0
tested: int = 0
- found: int = 0
+ found: int = -1
not_found: int = 0
timeout: int = 0
errors: int = 0
|
||
| ▸ | 150 |
not_found: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:150
@@ -147,7 +147,7 @@
trials: int = 0
tested: int = 0
found: int = 0
- not_found: int = 0
+ not_found: int = 1
timeout: int = 0
errors: int = 0
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:150
@@ -147,7 +147,7 @@
trials: int = 0
tested: int = 0
found: int = 0
- not_found: int = 0
+ not_found: int = -1
timeout: int = 0
errors: int = 0
|
||
| ▸ | 151 |
timeout: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:151
@@ -148,7 +148,7 @@
tested: int = 0
found: int = 0
not_found: int = 0
- timeout: int = 0
+ timeout: int = 1
errors: int = 0
@property
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:151
@@ -148,7 +148,7 @@
tested: int = 0
found: int = 0
not_found: int = 0
- timeout: int = 0
+ timeout: int = -1
errors: int = 0
@property
|
||
| ▸ | 152 |
errors: int = 0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:152
@@ -149,7 +149,7 @@
found: int = 0
not_found: int = 0
timeout: int = 0
- errors: int = 0
+ errors: int = 1
@property
def success_rate(self) -> float:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:152
@@ -149,7 +149,7 @@
found: int = 0
not_found: int = 0
timeout: int = 0
- errors: int = 0
+ errors: int = -1
@property
def success_rate(self) -> float:
|
||
| 153 | ||
| ▸ | 154 |
@property |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:154
@@ -151,14 +151,7 @@
timeout: int = 0
errors: int = 0
- @property
- def success_rate(self) -> float:
- """Return the success rate of the test run."""
- if self.trials > 0:
- return self.found / self.trials
- if self.tested > 0:
- return self.found / self.tested
- return 0.0
+ @def success_rate(self) -> float:
"""Return the success rate of the test run."""
if self.trials > 0:
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
return 0.0
@property
def coverage_display(self) -> str:
|
||
| 155 |
def success_rate(self) -> float: |
|
| 156 |
"""Return the success rate of the test run.""" |
|
| ▸ | 157 |
if self.trials > 0: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:157
@@ -154,7 +154,7 @@
@property
def success_rate(self) -> float:
"""Return the success rate of the test run."""
- if self.trials > 0:
+ if self.trials <= 0:
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:157
@@ -154,7 +154,7 @@
@property
def success_rate(self) -> float:
"""Return the success rate of the test run."""
- if self.trials > 0:
+ if self.trials >= 0:
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
Status: Mutant Not Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:157
@@ -154,7 +154,7 @@
@property
def success_rate(self) -> float:
"""Return the success rate of the test run."""
- if self.trials > 0:
+ if self.trials > 1:
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:157
@@ -154,7 +154,7 @@
@property
def success_rate(self) -> float:
"""Return the success rate of the test run."""
- if self.trials > 0:
+ if self.trials > -1:
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
|
||
| ▸ | 158 |
return self.found / self.trials |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:158
@@ -155,7 +155,7 @@
def success_rate(self) -> float:
"""Return the success rate of the test run."""
if self.trials > 0:
- return self.found / self.trials
+ return self.found * self.trials
if self.tested > 0:
return self.found / self.tested
return 0.0
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:158
@@ -155,7 +155,7 @@
def success_rate(self) -> float:
"""Return the success rate of the test run."""
if self.trials > 0:
- return self.found / self.trials
+ return self.found - self.trials
if self.tested > 0:
return self.found / self.tested
return 0.0
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:158
@@ -155,7 +155,7 @@
def success_rate(self) -> float:
"""Return the success rate of the test run."""
if self.trials > 0:
- return self.found / self.trials
+ return None
if self.tested > 0:
return self.found / self.tested
return 0.0
|
||
| ▸ | 159 |
if self.tested > 0: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:159
@@ -156,7 +156,7 @@
"""Return the success rate of the test run."""
if self.trials > 0:
return self.found / self.trials
- if self.tested > 0:
+ if self.tested <= 0:
return self.found / self.tested
return 0.0
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:159
@@ -156,7 +156,7 @@
"""Return the success rate of the test run."""
if self.trials > 0:
return self.found / self.trials
- if self.tested > 0:
+ if self.tested >= 0:
return self.found / self.tested
return 0.0
Status: Mutant Not Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:159
@@ -156,7 +156,7 @@
"""Return the success rate of the test run."""
if self.trials > 0:
return self.found / self.trials
- if self.tested > 0:
+ if self.tested > 1:
return self.found / self.tested
return 0.0
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:159
@@ -156,7 +156,7 @@
"""Return the success rate of the test run."""
if self.trials > 0:
return self.found / self.trials
- if self.tested > 0:
+ if self.tested > -1:
return self.found / self.tested
return 0.0
|
||
| ▸ | 160 |
return self.found / self.tested |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:160
@@ -157,7 +157,7 @@
if self.trials > 0:
return self.found / self.trials
if self.tested > 0:
- return self.found / self.tested
+ return self.found * self.tested
return 0.0
@property
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:160
@@ -157,7 +157,7 @@
if self.trials > 0:
return self.found / self.trials
if self.tested > 0:
- return self.found / self.tested
+ return self.found - self.tested
return 0.0
@property
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:160
@@ -157,7 +157,7 @@
if self.trials > 0:
return self.found / self.trials
if self.tested > 0:
- return self.found / self.tested
+ return None
return 0.0
@property
|
||
| ▸ | 161 |
return 0.0 |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:161
@@ -158,7 +158,7 @@
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
- return 0.0
+ return 1.0
@property
def coverage_display(self) -> str:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:161
@@ -158,7 +158,7 @@
return self.found / self.trials
if self.tested > 0:
return self.found / self.tested
- return 0.0
+ return None
@property
def coverage_display(self) -> str:
|
||
| 162 | ||
| ▸ | 163 |
@property |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:163
@@ -160,10 +160,7 @@
return self.found / self.tested
return 0.0
- @property
- def coverage_display(self) -> str:
- """Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ @def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
return f'{self.success_rate * 100:.2f}%'
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
|
||
| 164 |
def coverage_display(self) -> str: |
|
| 165 |
"""Return a formatted string for the coverage percentage.""" |
|
| ▸ | 166 |
return f"{self.success_rate * 100:.2f}%"
|
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate / 100:.2f}%"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate + 100:.2f}%"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate * 101:.2f}%"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate * 99:.2f}%"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate * 100:'XX.2fXX'}%"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return f"{self.success_rate * 100:.2f}'XX%XX'"
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:166
@@ -163,7 +163,7 @@
@property
def coverage_display(self) -> str:
"""Return a formatted string for the coverage percentage."""
- return f"{self.success_rate * 100:.2f}%"
+ return None
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
|
||
| 167 | ||
| 168 |
def __iadd__(self, result: MutantTrialResult) -> Self: |
|
| 169 |
"""Update Testing Summary with data from MutantTrialResult.""" |
|
| ▸ | 170 |
if isinstance(result, MutantTrialResult): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:170
@@ -167,7 +167,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
- if isinstance(result, MutantTrialResult):
+ if None:
self.tested += 1
if result.found:
self.found += 1
|
||
| ▸ | 171 |
self.tested += 1 |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:171
@@ -168,7 +168,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
if isinstance(result, MutantTrialResult):
- self.tested += 1
+ self.tested = 1
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:171
@@ -168,7 +168,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
if isinstance(result, MutantTrialResult):
- self.tested += 1
+ self.tested -= 1
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:171
@@ -168,7 +168,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
if isinstance(result, MutantTrialResult):
- self.tested += 1
+ self.tested *= 1
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:171
@@ -168,7 +168,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
if isinstance(result, MutantTrialResult):
- self.tested += 1
+ self.tested += 2
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:171
@@ -168,7 +168,7 @@
def __iadd__(self, result: MutantTrialResult) -> Self:
"""Update Testing Summary with data from MutantTrialResult."""
if isinstance(result, MutantTrialResult):
- self.tested += 1
+ self.tested += 0
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
|
||
| 172 |
if result.found: |
|
| ▸ | 173 |
self.found += 1 |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:173
@@ -170,7 +170,7 @@
if isinstance(result, MutantTrialResult):
self.tested += 1
if result.found:
- self.found += 1
+ self.found = 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:173
@@ -170,7 +170,7 @@
if isinstance(result, MutantTrialResult):
self.tested += 1
if result.found:
- self.found += 1
+ self.found -= 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:173
@@ -170,7 +170,7 @@
if isinstance(result, MutantTrialResult):
self.tested += 1
if result.found:
- self.found += 1
+ self.found *= 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:173
@@ -170,7 +170,7 @@
if isinstance(result, MutantTrialResult):
self.tested += 1
if result.found:
- self.found += 1
+ self.found += 2
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:173
@@ -170,7 +170,7 @@
if isinstance(result, MutantTrialResult):
self.tested += 1
if result.found:
- self.found += 1
+ self.found += 0
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
|
||
| ▸ | 174 |
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:174
@@ -171,7 +171,7 @@
self.tested += 1
if result.found:
self.found += 1
- elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
+ elif result.reason_code != MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
|
||
| ▸ | 175 |
self.not_found += 1 |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:175
@@ -172,7 +172,7 @@
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
- self.not_found += 1
+ self.not_found = 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:175
@@ -172,7 +172,7 @@
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
- self.not_found += 1
+ self.not_found -= 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:175
@@ -172,7 +172,7 @@
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
- self.not_found += 1
+ self.not_found *= 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:175
@@ -172,7 +172,7 @@
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
- self.not_found += 1
+ self.not_found += 2
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:175
@@ -172,7 +172,7 @@
if result.found:
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
- self.not_found += 1
+ self.not_found += 0
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
|
||
| ▸ | 176 |
elif result.reason_code == MutantTrialResult.RC_TIMEOUT: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:176
@@ -173,7 +173,7 @@
self.found += 1
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
- elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
+ elif result.reason_code != MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
self.errors += 1
|
||
| ▸ | 177 |
self.timeout += 1 |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:177
@@ -174,7 +174,7 @@
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
- self.timeout += 1
+ self.timeout = 1
else:
self.errors += 1
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:177
@@ -174,7 +174,7 @@
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
- self.timeout += 1
+ self.timeout -= 1
else:
self.errors += 1
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:177
@@ -174,7 +174,7 @@
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
- self.timeout += 1
+ self.timeout *= 1
else:
self.errors += 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:177
@@ -174,7 +174,7 @@
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
- self.timeout += 1
+ self.timeout += 2
else:
self.errors += 1
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:177
@@ -174,7 +174,7 @@
elif result.reason_code == MutantTrialResult.RC_NOT_FOUND:
self.not_found += 1
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
- self.timeout += 1
+ self.timeout += 0
else:
self.errors += 1
|
||
| 178 |
else: |
|
| ▸ | 179 |
self.errors += 1 |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:179
@@ -176,7 +176,7 @@
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
- self.errors += 1
+ self.errors = 1
return self
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:179
@@ -176,7 +176,7 @@
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
- self.errors += 1
+ self.errors -= 1
return self
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:179
@@ -176,7 +176,7 @@
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
- self.errors += 1
+ self.errors *= 1
return self
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:179
@@ -176,7 +176,7 @@
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
- self.errors += 1
+ self.errors += 2
return self
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:179
@@ -176,7 +176,7 @@
elif result.reason_code == MutantTrialResult.RC_TIMEOUT:
self.timeout += 1
else:
- self.errors += 1
+ self.errors += 0
return self
|
||
| 180 | ||
| ▸ | 181 |
return self |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:181
@@ -178,7 +178,7 @@
else:
self.errors += 1
- return self
+ return None
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
|
||
| 182 | ||
| ▸ | 183 |
@staticmethod |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:183
@@ -180,12 +180,7 @@
return self
- @staticmethod
- def from_dict(d: dict[str, Any]) -> dict[str, Any]:
- """Correct fields in Dictionary for JSON deserialization."""
- d.pop("success_rate", None)
- d.pop("coverage_display", None)
- return d
+ @def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
d.pop('success_rate', None)
d.pop('coverage_display', None)
return d
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 184 |
def from_dict(d: dict[str, Any]) -> dict[str, Any]: |
|
| 185 |
"""Correct fields in Dictionary for JSON deserialization.""" |
|
| ▸ | 186 |
d.pop("success_rate", None)
|
|
Status: Mutant Not Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:186
@@ -183,7 +183,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- d.pop("success_rate", None)
+ d.pop("success_rate", ' ')
d.pop("coverage_display", None)
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:186
@@ -183,7 +183,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- d.pop("success_rate", None)
+ d.pop('XXsuccess_rateXX', None)
d.pop("coverage_display", None)
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:186
@@ -183,7 +183,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- d.pop("success_rate", None)
+ None
d.pop("coverage_display", None)
return d
|
||
| ▸ | 187 |
d.pop("coverage_display", None)
|
|
Status: Mutant Not Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:187
@@ -184,7 +184,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
d.pop("success_rate", None)
- d.pop("coverage_display", None)
+ d.pop("coverage_display", ' ')
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:187
@@ -184,7 +184,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
d.pop("success_rate", None)
- d.pop("coverage_display", None)
+ d.pop('XXcoverage_displayXX', None)
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:187
@@ -184,7 +184,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
d.pop("success_rate", None)
- d.pop("coverage_display", None)
+ None
return d
def to_dict(self) -> dict[str, Any]:
|
||
| ▸ | 188 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:188
@@ -185,7 +185,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
d.pop("success_rate", None)
d.pop("coverage_display", None)
- return d
+ return None
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 189 | ||
| 190 |
def to_dict(self) -> dict[str, Any]: |
|
| 191 |
"""Convert to Dictionary for JSON serialization.""" |
|
| ▸ | 192 |
d = asdict(self) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:192
@@ -189,7 +189,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- d = asdict(self)
+ d = None
d["success_rate"] = self.success_rate
d["coverage_display"] = self.coverage_display
return d
|
||
| ▸ | 193 |
d["success_rate"] = self.success_rate |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:193
@@ -190,7 +190,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["success_rate"] = self.success_rate
+ d['XXsuccess_rateXX'] = self.success_rate
d["coverage_display"] = self.coverage_display
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:193
@@ -190,7 +190,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["success_rate"] = self.success_rate
+ None = self.success_rate
d["coverage_display"] = self.coverage_display
return d
|
||
| ▸ | 194 |
d["coverage_display"] = self.coverage_display |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:194
@@ -191,7 +191,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["success_rate"] = self.success_rate
- d["coverage_display"] = self.coverage_display
+ d['XXcoverage_displayXX'] = self.coverage_display
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:194
@@ -191,7 +191,7 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["success_rate"] = self.success_rate
- d["coverage_display"] = self.coverage_display
+ None = self.coverage_display
return d
|
||
| ▸ | 195 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:195
@@ -192,7 +192,7 @@
d = asdict(self)
d["success_rate"] = self.success_rate
d["coverage_display"] = self.coverage_display
- return d
+ return None
@dataclass
|
||
| 196 | ||
| 197 | ||
| 198 |
@dataclass |
|
| 199 |
class TestingResults(PoodleSerialize): |
|
| 200 |
"""Collection of all trials and summary statistics.""" |
|
| 201 | ||
| 202 |
mutant_trials: list[MutantTrial] |
|
| 203 |
summary: TestingSummary |
|
| 204 | ||
| ▸ | 205 |
@staticmethod |
|
Status: Mutant Found Mutator Name: Decorator Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:205
@@ -202,14 +202,7 @@
mutant_trials: list[MutantTrial]
summary: TestingSummary
- @staticmethod
- def from_dict(d: dict[str, Any]) -> dict[str, Any]:
- """Correct fields in Dictionary for JSON deserialization."""
- if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
- return d
+ @def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if 'mutant_trials' in d:
d['mutant_trials'] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d['mutant_trials']]
if 'summary' in d and d['summary'] is not None:
d['summary'] = TestingSummary(**TestingSummary.from_dict(d['summary']))
return d
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 206 |
def from_dict(d: dict[str, Any]) -> dict[str, Any]: |
|
| 207 |
"""Correct fields in Dictionary for JSON deserialization.""" |
|
| ▸ | 208 |
if "mutant_trials" in d: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:208
@@ -205,7 +205,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "mutant_trials" in d:
+ if 'mutant_trials' not in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:208
@@ -205,7 +205,7 @@
@staticmethod
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
- if "mutant_trials" in d:
+ if 'XXmutant_trialsXX' in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
|
||
| ▸ | 209 |
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]] |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:209
@@ -206,7 +206,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
+ d['XXmutant_trialsXX'] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:209
@@ -206,7 +206,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
+ d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d['XXmutant_trialsXX']]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:209
@@ -206,7 +206,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
+ d["mutant_trials"] = [None for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:209
@@ -206,7 +206,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
+ None = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:209
@@ -206,7 +206,7 @@
def from_dict(d: dict[str, Any]) -> dict[str, Any]:
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
- d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
+ d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in None]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
|
||
| ▸ | 210 |
if "summary" in d and d["summary"] is not None: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:210
@@ -207,7 +207,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
+ if 'summary' in d or d['summary'] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:210
@@ -207,7 +207,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
+ if "summary" in d and d["summary"] is not ' ':
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:210
@@ -207,7 +207,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
+ if 'XXsummaryXX' in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:210
@@ -207,7 +207,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
+ if "summary" in d and d['XXsummaryXX'] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:210
@@ -207,7 +207,7 @@
"""Correct fields in Dictionary for JSON deserialization."""
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
- if "summary" in d and d["summary"] is not None:
+ if "summary" in d and None is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
|
||
| ▸ | 211 |
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"])) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:211
@@ -208,7 +208,7 @@
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
+ d['XXsummaryXX'] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:211
@@ -208,7 +208,7 @@
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
+ d["summary"] = TestingSummary(**TestingSummary.from_dict(d['XXsummaryXX']))
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:211
@@ -208,7 +208,7 @@
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
+ d["summary"] = None
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:211
@@ -208,7 +208,7 @@
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
+ None = TestingSummary(**TestingSummary.from_dict(d["summary"]))
return d
def to_dict(self) -> dict[str, Any]:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:211
@@ -208,7 +208,7 @@
if "mutant_trials" in d:
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
- d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
+ d["summary"] = TestingSummary(**TestingSummary.from_dict(None))
return d
def to_dict(self) -> dict[str, Any]:
|
||
| ▸ | 212 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:212
@@ -209,7 +209,7 @@
d["mutant_trials"] = [MutantTrial(**MutantTrial.from_dict(trial)) for trial in d["mutant_trials"]]
if "summary" in d and d["summary"] is not None:
d["summary"] = TestingSummary(**TestingSummary.from_dict(d["summary"]))
- return d
+ return None
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
|
||
| 213 | ||
| 214 |
def to_dict(self) -> dict[str, Any]: |
|
| 215 |
"""Convert to Dictionary for JSON serialization.""" |
|
| ▸ | 216 |
d = asdict(self) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:216
@@ -213,7 +213,7 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
- d = asdict(self)
+ d = None
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
d["summary"] = self.summary.to_dict() if self.summary is not None else None
return d
|
||
| ▸ | 217 |
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials] |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:217
@@ -214,6 +214,6 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
+ d['XXmutant_trialsXX'] = [trial.to_dict() for trial in self.mutant_trials]
d["summary"] = self.summary.to_dict() if self.summary is not None else None
return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:217
@@ -214,6 +214,6 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
+ d["mutant_trials"] = [None for trial in self.mutant_trials]
d["summary"] = self.summary.to_dict() if self.summary is not None else None
return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:217
@@ -214,6 +214,6 @@
def to_dict(self) -> dict[str, Any]:
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
- d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
+ None = [trial.to_dict() for trial in self.mutant_trials]
d["summary"] = self.summary.to_dict() if self.summary is not None else None
return d
|
||
| ▸ | 218 |
d["summary"] = self.summary.to_dict() if self.summary is not None else None |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ d["summary"] = self.summary.to_dict() if self.summary is None else None
+ return d
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ d["summary"] = self.summary.to_dict() if self.summary is not ' ' else None
+ return d
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ d["summary"] = self.summary.to_dict() if self.summary is not None else ' '
+ return d
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ d['XXsummaryXX'] = self.summary.to_dict() if self.summary is not None else None
+ return d
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ d["summary"] = None if self.summary is not None else None
+ return d
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:218
@@ -215,5 +215,5 @@
"""Convert to Dictionary for JSON serialization."""
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
- d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ None = self.summary.to_dict() if self.summary is not None else None
+ return d
|
||
| ▸ | 219 |
return d |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\data_types\data.py
+++ [Mutant] src\poodle\data_types\data.py:219
@@ -216,4 +216,4 @@
d = asdict(self)
d["mutant_trials"] = [trial.to_dict() for trial in self.mutant_trials]
d["summary"] = self.summary.to_dict() if self.summary is not None else None
- return d
+ return None
|