| 1 |
"""Report Testing Results.""" |
|
| 2 | ||
| 3 |
from __future__ import annotations |
|
| 4 | ||
| 5 |
import logging |
|
| 6 |
from typing import TYPE_CHECKING, Any, Callable |
|
| 7 | ||
| 8 |
from .reporters import report_html, report_json, report_not_found, report_summary |
|
| 9 |
from .util import dynamic_import |
|
| 10 | ||
| 11 |
if TYPE_CHECKING: |
|
| 12 |
from collections.abc import Generator |
|
| 13 | ||
| 14 |
from .data_types import PoodleConfig |
|
| 15 | ||
| ▸ | 16 |
logger = logging.getLogger(__name__) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:16
@@ -13,7 +13,7 @@
from .data_types import PoodleConfig
-logger = logging.getLogger(__name__)
+logger = None
builtin_reporters: dict[str, Callable] = {
"summary": report_summary,
|
||
| 17 | ||
| 18 |
builtin_reporters: dict[str, Callable] = {
|
|
| ▸ | 19 |
"summary": report_summary, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:19
@@ -16,7 +16,7 @@
logger = logging.getLogger(__name__)
builtin_reporters: dict[str, Callable] = {
- "summary": report_summary,
+ 'XXsummaryXX': report_summary,
"not_found": report_not_found,
"json": report_json,
"html": report_html,
|
||
| ▸ | 20 |
"not_found": report_not_found, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:20
@@ -17,7 +17,7 @@
builtin_reporters: dict[str, Callable] = {
"summary": report_summary,
- "not_found": report_not_found,
+ 'XXnot_foundXX': report_not_found,
"json": report_json,
"html": report_html,
}
|
||
| ▸ | 21 |
"json": report_json, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:21
@@ -18,7 +18,7 @@
builtin_reporters: dict[str, Callable] = {
"summary": report_summary,
"not_found": report_not_found,
- "json": report_json,
+ 'XXjsonXX': report_json,
"html": report_html,
}
|
||
| ▸ | 22 |
"html": report_html, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:22
@@ -19,7 +19,7 @@
"summary": report_summary,
"not_found": report_not_found,
"json": report_json,
- "html": report_html,
+ 'XXhtmlXX': report_html,
}
|
||
| 23 |
} |
|
| 24 | ||
| 25 | ||
| 26 |
def generate_reporters(config: PoodleConfig) -> Generator[Callable, Any, None]: |
|
| 27 |
"""Build list of reporter functions.""" |
|
| ▸ | 28 |
logger.debug("Reporters: %s", config.reporters)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:28
@@ -25,7 +25,7 @@
def generate_reporters(config: PoodleConfig) -> Generator[Callable, Any, None]:
"""Build list of reporter functions."""
- logger.debug("Reporters: %s", config.reporters)
+ logger.debug('XXReporters: %sXX', config.reporters)
if config.reporters:
for reporter_name in config.reporters:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:28
@@ -25,7 +25,7 @@
def generate_reporters(config: PoodleConfig) -> Generator[Callable, Any, None]:
"""Build list of reporter functions."""
- logger.debug("Reporters: %s", config.reporters)
+ None
if config.reporters:
for reporter_name in config.reporters:
|
||
| 29 | ||
| 30 |
if config.reporters: |
|
| 31 |
for reporter_name in config.reporters: |
|
| ▸ | 32 |
if reporter_name in builtin_reporters: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:32
@@ -29,7 +29,7 @@
if config.reporters:
for reporter_name in config.reporters:
- if reporter_name in builtin_reporters:
+ if reporter_name not in builtin_reporters:
yield builtin_reporters[reporter_name]
else:
yield dynamic_import(reporter_name)
|
||
| ▸ | 33 |
yield builtin_reporters[reporter_name] |
|
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:33
@@ -30,6 +30,6 @@
if config.reporters:
for reporter_name in config.reporters:
if reporter_name in builtin_reporters:
- yield builtin_reporters[reporter_name]
+ yield None
else:
yield dynamic_import(reporter_name)
|
||
| 34 |
else: |
|
| ▸ | 35 |
yield dynamic_import(reporter_name) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\report.py
+++ [Mutant] src\poodle\report.py:35
@@ -32,4 +32,4 @@
if reporter_name in builtin_reporters:
yield builtin_reporters[reporter_name]
else:
- yield dynamic_import(reporter_name)
+ yield None
|