| 1 |
"""Mutation Test Result HTML Reporter.""" |
|
| 2 | ||
| 3 |
from __future__ import annotations |
|
| 4 | ||
| 5 |
import datetime |
|
| 6 |
import re |
|
| 7 |
import shutil |
|
| 8 |
from pathlib import Path |
|
| 9 |
from typing import TYPE_CHECKING, Any, Callable |
|
| 10 | ||
| 11 |
from jinja2 import Environment, PackageLoader |
|
| 12 | ||
| 13 |
from poodle import __version__ as poodle_version |
|
| 14 |
from poodle.data_types import MutantTrial, PoodleConfig, TestingResults, TestingSummary |
|
| 15 | ||
| 16 |
if TYPE_CHECKING: |
|
| 17 |
from collections.abc import Generator |
|
| 18 | ||
| 19 | ||
| 20 |
def template_path() -> Path: |
|
| 21 |
"""Return the path to the HTML Template folder.""" |
|
| ▸ | 22 |
return Path(__file__).parent.parent / "templates" |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:22
@@ -19,7 +19,7 @@
def template_path() -> Path:
"""Return the path to the HTML Template folder."""
- return Path(__file__).parent.parent / "templates"
+ return Path(__file__).parent.parent * 'templates'
STATIC_FILES = [
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:22
@@ -19,7 +19,7 @@
def template_path() -> Path:
"""Return the path to the HTML Template folder."""
- return Path(__file__).parent.parent / "templates"
+ return Path(__file__).parent.parent - 'templates'
STATIC_FILES = [
Status: Mutant Not Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:22
@@ -19,7 +19,7 @@
def template_path() -> Path:
"""Return the path to the HTML Template folder."""
- return Path(__file__).parent.parent / "templates"
+ return Path(__file__).parent.parent / 'XXtemplatesXX'
STATIC_FILES = [
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:22
@@ -19,7 +19,7 @@
def template_path() -> Path:
"""Return the path to the HTML Template folder."""
- return Path(__file__).parent.parent / "templates"
+ return None.parent.parent / "templates"
STATIC_FILES = [
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:22
@@ -19,7 +19,7 @@
def template_path() -> Path:
"""Return the path to the HTML Template folder."""
- return Path(__file__).parent.parent / "templates"
+ return None
STATIC_FILES = [
|
||
| 23 | ||
| 24 | ||
| 25 |
STATIC_FILES = [ |
|
| ▸ | 26 |
"html-report.js", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:26
@@ -23,7 +23,7 @@
STATIC_FILES = [
- "html-report.js",
+ 'XXhtml-report.jsXX',
"html-report.css",
"poodle.ico",
]
|
||
| ▸ | 27 |
"html-report.css", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:27
@@ -24,7 +24,7 @@
STATIC_FILES = [
"html-report.js",
- "html-report.css",
+ 'XXhtml-report.cssXX',
"poodle.ico",
]
|
||
| ▸ | 28 |
"poodle.ico", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:28
@@ -25,7 +25,7 @@
STATIC_FILES = [
"html-report.js",
"html-report.css",
- "poodle.ico",
+ 'XXpoodle.icoXX',
]
|
||
| 29 |
] |
|
| 30 | ||
| 31 | ||
| 32 |
def report_html(config: PoodleConfig, echo: Callable, testing_results: TestingResults, *_, **__) -> None: |
|
| 33 |
"""Build HTML Report for Testing Results.""" |
|
| ▸ | 34 |
html_options = config.reporter_opts.get("html", {})
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:34
@@ -31,7 +31,7 @@
def report_html(config: PoodleConfig, echo: Callable, testing_results: TestingResults, *_, **__) -> None:
"""Build HTML Report for Testing Results."""
- html_options = config.reporter_opts.get("html", {})
+ html_options = config.reporter_opts.get('XXhtmlXX', {})
if not isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:34
@@ -31,7 +31,7 @@
def report_html(config: PoodleConfig, echo: Callable, testing_results: TestingResults, *_, **__) -> None:
"""Build HTML Report for Testing Results."""
- html_options = config.reporter_opts.get("html", {})
+ html_options = None
if not isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
|
||
| ▸ | 35 |
if not isinstance(html_options, dict): |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:35
@@ -32,7 +32,7 @@
def report_html(config: PoodleConfig, echo: Callable, testing_results: TestingResults, *_, **__) -> None:
"""Build HTML Report for Testing Results."""
html_options = config.reporter_opts.get("html", {})
- if not isinstance(html_options, dict):
+ if isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:35
@@ -32,7 +32,7 @@
def report_html(config: PoodleConfig, echo: Callable, testing_results: TestingResults, *_, **__) -> None:
"""Build HTML Report for Testing Results."""
html_options = config.reporter_opts.get("html", {})
- if not isinstance(html_options, dict):
+ if not None:
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
|
||
| ▸ | 36 |
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:36
@@ -33,7 +33,7 @@
"""Build HTML Report for Testing Results."""
html_options = config.reporter_opts.get("html", {})
if not isinstance(html_options, dict):
- raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
+ raise TypeError('XXHTML Reporter Options (reporter_opts.html) must be a Dictionary.XX')
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
copy_static_files(report_folder)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:36
@@ -33,7 +33,7 @@
"""Build HTML Report for Testing Results."""
html_options = config.reporter_opts.get("html", {})
if not isinstance(html_options, dict):
- raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
+ raise None
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
copy_static_files(report_folder)
|
||
| 37 | ||
| ▸ | 38 |
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:38
@@ -35,7 +35,7 @@
if not isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
- report_folder = Path(html_options.get("report_folder", "mutation_reports"))
+ report_folder = Path(html_options.get('XXreport_folderXX', "mutation_reports"))
copy_static_files(report_folder)
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:38
@@ -35,7 +35,7 @@
if not isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
- report_folder = Path(html_options.get("report_folder", "mutation_reports"))
+ report_folder = Path(html_options.get("report_folder", 'XXmutation_reportsXX'))
copy_static_files(report_folder)
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:38
@@ -35,7 +35,7 @@
if not isinstance(html_options, dict):
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
- report_folder = Path(html_options.get("report_folder", "mutation_reports"))
+ report_folder = None
copy_static_files(report_folder)
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
|
||
| ▸ | 39 |
copy_static_files(report_folder) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:39
@@ -36,7 +36,7 @@
raise TypeError("HTML Reporter Options (reporter_opts.html) must be a Dictionary.")
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
- copy_static_files(report_folder)
+ None
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
|
||
| 40 | ||
| ▸ | 41 |
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
|
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:41
@@ -38,7 +38,7 @@
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
copy_static_files(report_folder)
- env = Environment(loader=PackageLoader("poodle"), autoescape=True)
+ env = Environment(loader=PackageLoader("poodle"), autoescape=False)
common_vars = {
"project": {
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:41
@@ -38,7 +38,7 @@
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
copy_static_files(report_folder)
- env = Environment(loader=PackageLoader("poodle"), autoescape=True)
+ env = Environment(loader=PackageLoader('XXpoodleXX'), autoescape=True)
common_vars = {
"project": {
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:41
@@ -38,7 +38,7 @@
report_folder = Path(html_options.get("report_folder", "mutation_reports"))
copy_static_files(report_folder)
- env = Environment(loader=PackageLoader("poodle"), autoescape=True)
+ env = None
common_vars = {
"project": {
|
||
| 42 | ||
| 43 |
common_vars = {
|
|
| ▸ | 44 |
"project": {
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:44
@@ -41,7 +41,7 @@
env = Environment(loader=PackageLoader("poodle"), autoescape=True)
common_vars = {
- "project": {
+ 'XXprojectXX': {
"name": config.project_name,
"version": config.project_version,
},
|
||
| ▸ | 45 |
"name": config.project_name, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:45
@@ -42,7 +42,7 @@
common_vars = {
"project": {
- "name": config.project_name,
+ 'XXnameXX': config.project_name,
"version": config.project_version,
},
"poodle_version": poodle_version,
|
||
| ▸ | 46 |
"version": config.project_version, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:46
@@ -43,7 +43,7 @@
common_vars = {
"project": {
"name": config.project_name,
- "version": config.project_version,
+ 'XXversionXX': config.project_version,
},
"poodle_version": poodle_version,
"timestamp": local_timestamp(),
|
||
| 47 |
}, |
|
| ▸ | 48 |
"poodle_version": poodle_version, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:48
@@ -45,7 +45,7 @@
"name": config.project_name,
"version": config.project_version,
},
- "poodle_version": poodle_version,
+ 'XXpoodle_versionXX': poodle_version,
"timestamp": local_timestamp(),
}
|
||
| ▸ | 49 |
"timestamp": local_timestamp(), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:49
@@ -46,7 +46,7 @@
"version": config.project_version,
},
"poodle_version": poodle_version,
- "timestamp": local_timestamp(),
+ 'XXtimestampXX': local_timestamp(),
}
modules = module_data(testing_results, html_options)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:49
@@ -46,7 +46,7 @@
"version": config.project_version,
},
"poodle_version": poodle_version,
- "timestamp": local_timestamp(),
+ "timestamp": None,
}
modules = module_data(testing_results, html_options)
|
||
| 50 |
} |
|
| 51 | ||
| ▸ | 52 |
modules = module_data(testing_results, html_options) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:52
@@ -49,7 +49,7 @@
"timestamp": local_timestamp(),
}
- modules = module_data(testing_results, html_options)
+ modules = None
index_template = env.get_template("html-report-index.html.jinja")
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
|
||
| 53 | ||
| ▸ | 54 |
index_template = env.get_template("html-report-index.html.jinja")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:54
@@ -51,7 +51,7 @@
modules = module_data(testing_results, html_options)
- index_template = env.get_template("html-report-index.html.jinja")
+ index_template = env.get_template('XXhtml-report-index.html.jinjaXX')
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
index_file = report_folder / "index.html"
index_file.write_text(index_page.strip())
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:54
@@ -51,7 +51,7 @@
modules = module_data(testing_results, html_options)
- index_template = env.get_template("html-report-index.html.jinja")
+ index_template = None
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
index_file = report_folder / "index.html"
index_file.write_text(index_page.strip())
|
||
| ▸ | 55 |
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:55
@@ -52,7 +52,7 @@
modules = module_data(testing_results, html_options)
index_template = env.get_template("html-report-index.html.jinja")
- index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
+ index_page = None
index_file = report_folder / "index.html"
index_file.write_text(index_page.strip())
|
||
| ▸ | 56 |
index_file = report_folder / "index.html" |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:56
@@ -53,7 +53,7 @@
index_template = env.get_template("html-report-index.html.jinja")
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
- index_file = report_folder / "index.html"
+ index_file = report_folder * 'index.html'
index_file.write_text(index_page.strip())
module_template = env.get_template("html-report-module.html.jinja")
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:56
@@ -53,7 +53,7 @@
index_template = env.get_template("html-report-index.html.jinja")
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
- index_file = report_folder / "index.html"
+ index_file = report_folder - 'index.html'
index_file.write_text(index_page.strip())
module_template = env.get_template("html-report-module.html.jinja")
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:56
@@ -53,7 +53,7 @@
index_template = env.get_template("html-report-index.html.jinja")
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
- index_file = report_folder / "index.html"
+ index_file = report_folder / 'XXindex.htmlXX'
index_file.write_text(index_page.strip())
module_template = env.get_template("html-report-module.html.jinja")
|
||
| ▸ | 57 |
index_file.write_text(index_page.strip()) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:57
@@ -54,7 +54,7 @@
index_template = env.get_template("html-report-index.html.jinja")
index_page = index_template.render(total=testing_results.summary, modules=modules, **common_vars)
index_file = report_folder / "index.html"
- index_file.write_text(index_page.strip())
+ None
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
|
||
| 58 | ||
| ▸ | 59 |
module_template = env.get_template("html-report-module.html.jinja")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:59
@@ -56,7 +56,7 @@
index_file = report_folder / "index.html"
index_file.write_text(index_page.strip())
- module_template = env.get_template("html-report-module.html.jinja")
+ module_template = env.get_template('XXhtml-report-module.html.jinjaXX')
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
(report_folder / module["report_file"]).write_text(module_page.strip())
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:59
@@ -56,7 +56,7 @@
index_file = report_folder / "index.html"
index_file.write_text(index_page.strip())
- module_template = env.get_template("html-report-module.html.jinja")
+ module_template = None
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
(report_folder / module["report_file"]).write_text(module_page.strip())
|
||
| ▸ | 60 |
for source_file, module in modules.items(): |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:60
@@ -57,7 +57,7 @@
index_file.write_text(index_page.strip())
module_template = env.get_template("html-report-module.html.jinja")
- for source_file, module in modules.items():
+ for source_file, module in None:
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
(report_folder / module["report_file"]).write_text(module_page.strip())
|
||
| ▸ | 61 |
module_page = module_template.render(source_file=source_file, module=module, **common_vars) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:61
@@ -58,7 +58,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
- module_page = module_template.render(source_file=source_file, module=module, **common_vars)
+ module_page = None
(report_folder / module["report_file"]).write_text(module_page.strip())
echo(f"HTML Report Generated at {index_file.resolve()}")
|
||
| ▸ | 62 |
(report_folder / module["report_file"]).write_text(module_page.strip()) |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:62
@@ -59,7 +59,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
- (report_folder / module["report_file"]).write_text(module_page.strip())
+ (report_folder * module['report_file']).write_text(module_page.strip())
echo(f"HTML Report Generated at {index_file.resolve()}")
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:62
@@ -59,7 +59,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
- (report_folder / module["report_file"]).write_text(module_page.strip())
+ (report_folder - module['report_file']).write_text(module_page.strip())
echo(f"HTML Report Generated at {index_file.resolve()}")
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:62
@@ -59,7 +59,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
- (report_folder / module["report_file"]).write_text(module_page.strip())
+ (report_folder / module['XXreport_fileXX']).write_text(module_page.strip())
echo(f"HTML Report Generated at {index_file.resolve()}")
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:62
@@ -59,7 +59,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
- (report_folder / module["report_file"]).write_text(module_page.strip())
+ None
echo(f"HTML Report Generated at {index_file.resolve()}")
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:62
@@ -59,7 +59,7 @@
module_template = env.get_template("html-report-module.html.jinja")
for source_file, module in modules.items():
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
- (report_folder / module["report_file"]).write_text(module_page.strip())
+ (report_folder / None).write_text(module_page.strip())
echo(f"HTML Report Generated at {index_file.resolve()}")
|
||
| 63 | ||
| ▸ | 64 |
echo(f"HTML Report Generated at {index_file.resolve()}")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:64
@@ -61,7 +61,7 @@
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
(report_folder / module["report_file"]).write_text(module_page.strip())
- echo(f"HTML Report Generated at {index_file.resolve()}")
+ echo(f"'XXHTML Report Generated at XX'{index_file.resolve()}")
def copy_static_files(report_folder: Path) -> None:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:64
@@ -61,7 +61,7 @@
module_page = module_template.render(source_file=source_file, module=module, **common_vars)
(report_folder / module["report_file"]).write_text(module_page.strip())
- echo(f"HTML Report Generated at {index_file.resolve()}")
+ None
def copy_static_files(report_folder: Path) -> None:
|
||
| 65 | ||
| 66 | ||
| 67 |
def copy_static_files(report_folder: Path) -> None: |
|
| 68 |
"""Copy static files to report folder.""" |
|
| ▸ | 69 |
report_folder.mkdir(parents=True, exist_ok=True) |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:69
@@ -66,7 +66,7 @@
def copy_static_files(report_folder: Path) -> None:
"""Copy static files to report folder."""
- report_folder.mkdir(parents=True, exist_ok=True)
+ report_folder.mkdir(parents=False, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
shutil.copy2(templates_folder / file, report_folder / file)
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:69
@@ -66,7 +66,7 @@
def copy_static_files(report_folder: Path) -> None:
"""Copy static files to report folder."""
- report_folder.mkdir(parents=True, exist_ok=True)
+ report_folder.mkdir(parents=True, exist_ok=False)
templates_folder = template_path()
for file in STATIC_FILES:
shutil.copy2(templates_folder / file, report_folder / file)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:69
@@ -66,7 +66,7 @@
def copy_static_files(report_folder: Path) -> None:
"""Copy static files to report folder."""
- report_folder.mkdir(parents=True, exist_ok=True)
+ None
templates_folder = template_path()
for file in STATIC_FILES:
shutil.copy2(templates_folder / file, report_folder / file)
|
||
| ▸ | 70 |
templates_folder = template_path() |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:70
@@ -67,7 +67,7 @@
def copy_static_files(report_folder: Path) -> None:
"""Copy static files to report folder."""
report_folder.mkdir(parents=True, exist_ok=True)
- templates_folder = template_path()
+ templates_folder = None
for file in STATIC_FILES:
shutil.copy2(templates_folder / file, report_folder / file)
|
||
| 71 |
for file in STATIC_FILES: |
|
| ▸ | 72 |
shutil.copy2(templates_folder / file, report_folder / file) |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:72
@@ -69,7 +69,7 @@
report_folder.mkdir(parents=True, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
- shutil.copy2(templates_folder / file, report_folder / file)
+ shutil.copy2(templates_folder * file, report_folder / file)
def local_timestamp() -> str:
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:72
@@ -69,7 +69,7 @@
report_folder.mkdir(parents=True, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
- shutil.copy2(templates_folder / file, report_folder / file)
+ shutil.copy2(templates_folder - file, report_folder / file)
def local_timestamp() -> str:
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:72
@@ -69,7 +69,7 @@
report_folder.mkdir(parents=True, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
- shutil.copy2(templates_folder / file, report_folder / file)
+ shutil.copy2(templates_folder / file, report_folder * file)
def local_timestamp() -> str:
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:72
@@ -69,7 +69,7 @@
report_folder.mkdir(parents=True, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
- shutil.copy2(templates_folder / file, report_folder / file)
+ shutil.copy2(templates_folder / file, report_folder - file)
def local_timestamp() -> str:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:72
@@ -69,7 +69,7 @@
report_folder.mkdir(parents=True, exist_ok=True)
templates_folder = template_path()
for file in STATIC_FILES:
- shutil.copy2(templates_folder / file, report_folder / file)
+ None
def local_timestamp() -> str:
|
||
| 73 | ||
| 74 | ||
| 75 |
def local_timestamp() -> str: |
|
| 76 |
"""Return a local timestamp.""" |
|
| ▸ | 77 |
dt = datetime.datetime.now(datetime.timezone.utc) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:77
@@ -74,7 +74,7 @@
def local_timestamp() -> str:
"""Return a local timestamp."""
- dt = datetime.datetime.now(datetime.timezone.utc)
+ dt = None
return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S%z")
|
||
| ▸ | 78 |
return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S%z")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:78
@@ -75,7 +75,7 @@
def local_timestamp() -> str:
"""Return a local timestamp."""
dt = datetime.datetime.now(datetime.timezone.utc)
- return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S%z")
+ return dt.astimezone().strftime('XX%Y-%m-%d %H:%M:%S%zXX')
def module_data(testing_results: TestingResults, html_options: dict) -> dict[Path, dict[str, Any]]:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:78
@@ -75,7 +75,7 @@
def local_timestamp() -> str:
"""Return a local timestamp."""
dt = datetime.datetime.now(datetime.timezone.utc)
- return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S%z")
+ return None
def module_data(testing_results: TestingResults, html_options: dict) -> dict[Path, dict[str, Any]]:
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:78
@@ -75,7 +75,7 @@
def local_timestamp() -> str:
"""Return a local timestamp."""
dt = datetime.datetime.now(datetime.timezone.utc)
- return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S%z")
+ return None
def module_data(testing_results: TestingResults, html_options: dict) -> dict[Path, dict[str, Any]]:
|
||
| 79 | ||
| 80 | ||
| 81 |
def module_data(testing_results: TestingResults, html_options: dict) -> dict[Path, dict[str, Any]]: |
|
| 82 |
"""Return data for report pages.""" |
|
| 83 |
modules = {trial.mutant.source_file for trial in testing_results.mutant_trials if trial.mutant.source_file}
|
|
| 84 | ||
| ▸ | 85 |
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
|
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:85
@@ -82,7 +82,7 @@
"""Return data for report pages."""
modules = {trial.mutant.source_file for trial in testing_results.mutant_trials if trial.mutant.source_file}
- module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
+ module_dict: dict[Path, dict] = {m: None for m in modules} # noqa: C408 - `dict()` call is needed here
include_found_index = html_options.get("include_found_trials_on_index", False)
include_found_source = html_options.get("include_found_trials_with_source", True)
|
||
| ▸ | 86 |
include_found_index = html_options.get("include_found_trials_on_index", False)
|
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:86
@@ -83,7 +83,7 @@
modules = {trial.mutant.source_file for trial in testing_results.mutant_trials if trial.mutant.source_file}
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
- include_found_index = html_options.get("include_found_trials_on_index", False)
+ include_found_index = html_options.get("include_found_trials_on_index", True)
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:86
@@ -83,7 +83,7 @@
modules = {trial.mutant.source_file for trial in testing_results.mutant_trials if trial.mutant.source_file}
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
- include_found_index = html_options.get("include_found_trials_on_index", False)
+ include_found_index = html_options.get('XXinclude_found_trials_on_indexXX', False)
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:86
@@ -83,7 +83,7 @@
modules = {trial.mutant.source_file for trial in testing_results.mutant_trials if trial.mutant.source_file}
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
- include_found_index = html_options.get("include_found_trials_on_index", False)
+ include_found_index = None
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
|
||
| ▸ | 87 |
include_found_source = html_options.get("include_found_trials_with_source", True)
|
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:87
@@ -84,7 +84,7 @@
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
include_found_index = html_options.get("include_found_trials_on_index", False)
- include_found_source = html_options.get("include_found_trials_with_source", True)
+ include_found_source = html_options.get("include_found_trials_with_source", False)
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:87
@@ -84,7 +84,7 @@
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
include_found_index = html_options.get("include_found_trials_on_index", False)
- include_found_source = html_options.get("include_found_trials_with_source", True)
+ include_found_source = html_options.get('XXinclude_found_trials_with_sourceXX', True)
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:87
@@ -84,7 +84,7 @@
module_dict: dict[Path, dict] = {m: dict() for m in modules} # noqa: C408 - `dict()` call is needed here
include_found_index = html_options.get("include_found_trials_on_index", False)
- include_found_source = html_options.get("include_found_trials_with_source", True)
+ include_found_source = None
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
|
||
| 88 | ||
| ▸ | 89 |
for idx, module in enumerate(modules, start=1): |
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:89
@@ -86,7 +86,7 @@
include_found_index = html_options.get("include_found_trials_on_index", False)
include_found_source = html_options.get("include_found_trials_with_source", True)
- for idx, module in enumerate(modules, start=1):
+ for idx, module in enumerate(modules, start=2):
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:89
@@ -86,7 +86,7 @@
include_found_index = html_options.get("include_found_trials_on_index", False)
include_found_source = html_options.get("include_found_trials_with_source", True)
- for idx, module in enumerate(modules, start=1):
+ for idx, module in enumerate(modules, start=0):
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:89
@@ -86,7 +86,7 @@
include_found_index = html_options.get("include_found_trials_on_index", False)
include_found_source = html_options.get("include_found_trials_with_source", True)
- for idx, module in enumerate(modules, start=1):
+ for idx, module in None:
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
|
||
| ▸ | 90 |
module_dict[module]["report_file"] = f"module-{idx}.html"
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:90
@@ -87,7 +87,7 @@
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
- module_dict[module]["report_file"] = f"module-{idx}.html"
+ module_dict[module]['XXreport_fileXX'] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:90
@@ -87,7 +87,7 @@
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
- module_dict[module]["report_file"] = f"module-{idx}.html"
+ module_dict[module]["report_file"] = f"'XXmodule-XX'{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:90
@@ -87,7 +87,7 @@
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
- module_dict[module]["report_file"] = f"module-{idx}.html"
+ module_dict[module]["report_file"] = f"module-{idx}'XX.htmlXX'"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:90
@@ -87,7 +87,7 @@
include_found_source = html_options.get("include_found_trials_with_source", True)
for idx, module in enumerate(modules, start=1):
- module_dict[module]["report_file"] = f"module-{idx}.html"
+ None = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
|
||
| ▸ | 91 |
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module)) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:91
@@ -88,7 +88,7 @@
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
- module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
+ module_dict[module]['XXfile_idXX'] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:91
@@ -88,7 +88,7 @@
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
- module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
+ module_dict[module]["file_id"] = re.sub('XX[^A-Za-z0-9\\-_:.]XX', "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:91
@@ -88,7 +88,7 @@
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
- module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
+ module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", 'XX_XX', str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:91
@@ -88,7 +88,7 @@
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
- module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
+ module_dict[module]["file_id"] = None
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:91
@@ -88,7 +88,7 @@
for idx, module in enumerate(modules, start=1):
module_dict[module]["report_file"] = f"module-{idx}.html"
- module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
+ None = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
|
||
| 92 | ||
| ▸ | 93 |
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials)) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:93
@@ -90,7 +90,7 @@
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
- module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
+ module_dict[module]['XXtrialsXX'] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:93
@@ -90,7 +90,7 @@
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
- module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
+ module_dict[module]["trials"] = None
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:93
@@ -90,7 +90,7 @@
module_dict[module]["report_file"] = f"module-{idx}.html"
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
- module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
+ None = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
|
||
| ▸ | 94 |
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:94
@@ -91,7 +91,7 @@
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
- module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
+ module_dict[module]['XXtrialsXX'].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:94
@@ -91,7 +91,7 @@
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
- module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
+ None
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:94
@@ -91,7 +91,7 @@
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
- module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
+ None.sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
Status: Mutant Found Mutator Name: Lambda Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:94
@@ -91,7 +91,7 @@
module_dict[module]["file_id"] = re.sub(r"[^A-Za-z0-9\-_:.]", "_", str(module))
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
- module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
+ module_dict[module]["trials"].sort(key=lambda trial: None)
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
|
||
| 95 | ||
| ▸ | 96 |
module_dict[module]["lines"] = list(module_lines(module)) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:96
@@ -93,7 +93,7 @@
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
- module_dict[module]["lines"] = list(module_lines(module))
+ module_dict[module]['XXlinesXX'] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:96
@@ -93,7 +93,7 @@
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
- module_dict[module]["lines"] = list(module_lines(module))
+ module_dict[module]["lines"] = None
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:96
@@ -93,7 +93,7 @@
module_dict[module]["trials"] = list(module_trials(module, testing_results.mutant_trials))
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
- module_dict[module]["lines"] = list(module_lines(module))
+ None = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
|
||
| ▸ | 97 |
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:97
@@ -94,7 +94,7 @@
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
- module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
+ module_add_trials_to_lines(module_dict[module]['XXtrialsXX'], module_dict[module]["lines"], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:97
@@ -94,7 +94,7 @@
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
- module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
+ module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]['XXlinesXX'], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:97
@@ -94,7 +94,7 @@
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
- module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
+ None
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:97
@@ -94,7 +94,7 @@
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
- module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
+ module_add_trials_to_lines(None, module_dict[module]["lines"], include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:97
@@ -94,7 +94,7 @@
module_dict[module]["trials"].sort(key=lambda trial: trial.mutant.lineno)
module_dict[module]["lines"] = list(module_lines(module))
- module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
+ module_add_trials_to_lines(module_dict[module]["trials"], None, include_found_source)
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
|
||
| 98 | ||
| ▸ | 99 |
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:99
@@ -96,7 +96,7 @@
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
- module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
+ module_dict[module]['XXsummaryXX'] = module_summary(module_dict[module]["trials"])
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:99
@@ -96,7 +96,7 @@
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
- module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
+ module_dict[module]["summary"] = module_summary(module_dict[module]['XXtrialsXX'])
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:99
@@ -96,7 +96,7 @@
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
- module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
+ module_dict[module]["summary"] = None
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:99
@@ -96,7 +96,7 @@
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
- module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
+ None = module_summary(module_dict[module]["trials"])
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:99
@@ -96,7 +96,7 @@
module_dict[module]["lines"] = list(module_lines(module))
module_add_trials_to_lines(module_dict[module]["trials"], module_dict[module]["lines"], include_found_source)
- module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
+ module_dict[module]["summary"] = module_summary(None)
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
|
||
| 100 | ||
| ▸ | 101 |
if not include_found_index: |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:101
@@ -98,7 +98,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
- if not include_found_index:
+ if include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
return module_dict
|
||
| ▸ | 102 |
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:102
@@ -99,7 +99,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
if not include_found_index:
- module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
+ module_dict[module]['XXtrialsXX'] = remove_found_trials(module_dict[module]["trials"])
return module_dict
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:102
@@ -99,7 +99,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
if not include_found_index:
- module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
+ module_dict[module]["trials"] = remove_found_trials(module_dict[module]['XXtrialsXX'])
return module_dict
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:102
@@ -99,7 +99,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
if not include_found_index:
- module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
+ module_dict[module]["trials"] = None
return module_dict
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:102
@@ -99,7 +99,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
if not include_found_index:
- module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
+ None = remove_found_trials(module_dict[module]["trials"])
return module_dict
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:102
@@ -99,7 +99,7 @@
module_dict[module]["summary"] = module_summary(module_dict[module]["trials"])
if not include_found_index:
- module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
+ module_dict[module]["trials"] = remove_found_trials(None)
return module_dict
|
||
| 103 | ||
| ▸ | 104 |
return module_dict |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:104
@@ -101,7 +101,7 @@
if not include_found_index:
module_dict[module]["trials"] = remove_found_trials(module_dict[module]["trials"])
- return module_dict
+ return None
def module_trials(
|
||
| 105 | ||
| 106 | ||
| 107 |
def module_trials( |
|
| 108 |
module: Path, |
|
| 109 |
mutant_trials: list[MutantTrial], |
|
| 110 |
) -> Generator[MutantTrial, Any, None]: |
|
| 111 |
"""Return trials for a module.""" |
|
| 112 |
for trial in mutant_trials: |
|
| ▸ | 113 |
if trial.mutant.source_file == module: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:113
@@ -110,7 +110,7 @@
) -> Generator[MutantTrial, Any, None]:
"""Return trials for a module."""
for trial in mutant_trials:
- if trial.mutant.source_file == module:
+ if trial.mutant.source_file != module:
yield trial
|
||
| 114 |
yield trial |
|
| 115 | ||
| 116 | ||
| 117 |
def module_lines(module: Path) -> Generator[dict[str, Any], Any, None]: |
|
| 118 |
"""Return lines for a module.""" |
|
| ▸ | 119 |
for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
|
|
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:119
@@ -116,7 +116,7 @@
def module_lines(module: Path) -> Generator[dict[str, Any], Any, None]:
"""Return lines for a module."""
- for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
+ for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=2):
yield {
"lineno": lineno,
"text": line,
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:119
@@ -116,7 +116,7 @@
def module_lines(module: Path) -> Generator[dict[str, Any], Any, None]:
"""Return lines for a module."""
- for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
+ for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=0):
yield {
"lineno": lineno,
"text": line,
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:119
@@ -116,7 +116,7 @@
def module_lines(module: Path) -> Generator[dict[str, Any], Any, None]:
"""Return lines for a module."""
- for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
+ for lineno, line in enumerate(module.read_text('XXutf-8XX').splitlines(), start=1):
yield {
"lineno": lineno,
"text": line,
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:119
@@ -116,7 +116,7 @@
def module_lines(module: Path) -> Generator[dict[str, Any], Any, None]:
"""Return lines for a module."""
- for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
+ for lineno, line in None:
yield {
"lineno": lineno,
"text": line,
|
||
| 120 |
yield {
|
|
| ▸ | 121 |
"lineno": lineno, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:121
@@ -118,7 +118,7 @@
"""Return lines for a module."""
for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
yield {
- "lineno": lineno,
+ 'XXlinenoXX': lineno,
"text": line,
"trials": [],
"row_class": "plain",
|
||
| ▸ | 122 |
"text": line, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:122
@@ -119,7 +119,7 @@
for lineno, line in enumerate(module.read_text("utf-8").splitlines(), start=1):
yield {
"lineno": lineno,
- "text": line,
+ 'XXtextXX': line,
"trials": [],
"row_class": "plain",
}
|
||
| ▸ | 123 |
"trials": [], |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:123
@@ -120,7 +120,7 @@
yield {
"lineno": lineno,
"text": line,
- "trials": [],
+ 'XXtrialsXX': [],
"row_class": "plain",
}
|
||
| ▸ | 124 |
"row_class": "plain", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:124
@@ -121,7 +121,7 @@
"lineno": lineno,
"text": line,
"trials": [],
- "row_class": "plain",
+ 'XXrow_classXX': "plain",
}
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:124
@@ -121,7 +121,7 @@
"lineno": lineno,
"text": line,
"trials": [],
- "row_class": "plain",
+ "row_class": 'XXplainXX',
}
|
||
| 125 |
} |
|
| 126 | ||
| 127 | ||
| 128 |
def module_add_trials_to_lines( |
|
| 129 |
module_trials: list[MutantTrial], |
|
| 130 |
module_lines: list[dict[str, Any]], |
|
| 131 |
include_found: bool, |
|
| 132 |
) -> None: |
|
| 133 |
"""Add trials to lines.""" |
|
| 134 |
for trial in module_trials: |
|
| ▸ | 135 |
if include_found or not trial.result.found: |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:135
@@ -132,7 +132,7 @@
) -> None:
"""Add trials to lines."""
for trial in module_trials:
- if include_found or not trial.result.found:
+ if include_found or trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:135
@@ -132,7 +132,7 @@
) -> None:
"""Add trials to lines."""
for trial in module_trials:
- if include_found or not trial.result.found:
+ if include_found and (not trial.result.found):
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
|
||
| ▸ | 136 |
line = module_lines[trial.mutant.lineno - 1] |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:136
@@ -133,7 +133,7 @@
"""Add trials to lines."""
for trial in module_trials:
if include_found or not trial.result.found:
- line = module_lines[trial.mutant.lineno - 1]
+ line = module_lines[trial.mutant.lineno + 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:136
@@ -133,7 +133,7 @@
"""Add trials to lines."""
for trial in module_trials:
if include_found or not trial.result.found:
- line = module_lines[trial.mutant.lineno - 1]
+ line = module_lines[trial.mutant.lineno / 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:136
@@ -133,7 +133,7 @@
"""Add trials to lines."""
for trial in module_trials:
if include_found or not trial.result.found:
- line = module_lines[trial.mutant.lineno - 1]
+ line = module_lines[trial.mutant.lineno - 2]
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:136
@@ -133,7 +133,7 @@
"""Add trials to lines."""
for trial in module_trials:
if include_found or not trial.result.found:
- line = module_lines[trial.mutant.lineno - 1]
+ line = module_lines[trial.mutant.lineno - 0]
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:136
@@ -133,7 +133,7 @@
"""Add trials to lines."""
for trial in module_trials:
if include_found or not trial.result.found:
- line = module_lines[trial.mutant.lineno - 1]
+ line = None
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
|
||
| ▸ | 137 |
line["trials"].append(trial) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:137
@@ -134,7 +134,7 @@
for trial in module_trials:
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
- line["trials"].append(trial)
+ line['XXtrialsXX'].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:137
@@ -134,7 +134,7 @@
for trial in module_trials:
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
- line["trials"].append(trial)
+ None
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:137
@@ -134,7 +134,7 @@
for trial in module_trials:
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
- line["trials"].append(trial)
+ None.append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
|
||
| ▸ | 138 |
if line["row_class"] == "plain": |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:138
@@ -135,7 +135,7 @@
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
- if line["row_class"] == "plain":
+ if line['row_class'] != 'plain':
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:138
@@ -135,7 +135,7 @@
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
- if line["row_class"] == "plain":
+ if line['XXrow_classXX'] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:138
@@ -135,7 +135,7 @@
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
- if line["row_class"] == "plain":
+ if line["row_class"] == 'XXplainXX':
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:138
@@ -135,7 +135,7 @@
if include_found or not trial.result.found:
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
- if line["row_class"] == "plain":
+ if None == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
|
||
| ▸ | 139 |
line["row_class"] = "found" if trial.result.found else "not_found" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:139
@@ -136,7 +136,7 @@
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
- line["row_class"] = "found" if trial.result.found else "not_found"
+ line['XXrow_classXX'] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:139
@@ -136,7 +136,7 @@
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
- line["row_class"] = "found" if trial.result.found else "not_found"
+ line["row_class"] = 'XXfoundXX' if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:139
@@ -136,7 +136,7 @@
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
- line["row_class"] = "found" if trial.result.found else "not_found"
+ line["row_class"] = "found" if trial.result.found else 'XXnot_foundXX'
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:139
@@ -136,7 +136,7 @@
line = module_lines[trial.mutant.lineno - 1]
line["trials"].append(trial)
if line["row_class"] == "plain":
- line["row_class"] = "found" if trial.result.found else "not_found"
+ None = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
|
||
| ▸ | 140 |
elif (line["row_class"] == "found" and not trial.result.found) or ( |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:140
@@ -137,7 +137,7 @@
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
- elif (line["row_class"] == "found" and not trial.result.found) or (
+ elif (line["row_class"] == "found" and trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:140
@@ -137,9 +137,7 @@
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
- elif (line["row_class"] == "found" and not trial.result.found) or (
- line["row_class"] == "not_found" and trial.result.found
- ):
+ elif (line['row_class'] == 'found' and (not trial.result.found)) and (line['row_class'] == 'not_found' and trial.result.found):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:140
@@ -137,7 +137,7 @@
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
- elif (line["row_class"] == "found" and not trial.result.found) or (
+ elif (line['XXrow_classXX'] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:140
@@ -137,7 +137,7 @@
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
- elif (line["row_class"] == "found" and not trial.result.found) or (
+ elif (line["row_class"] == 'XXfoundXX' and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:140
@@ -137,7 +137,7 @@
line["trials"].append(trial)
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
- elif (line["row_class"] == "found" and not trial.result.found) or (
+ elif (None == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
|
||
| ▸ | 141 |
line["row_class"] == "not_found" and trial.result.found |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:141
@@ -138,7 +138,7 @@
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
- line["row_class"] == "not_found" and trial.result.found
+ line['XXrow_classXX'] == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:141
@@ -138,7 +138,7 @@
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
- line["row_class"] == "not_found" and trial.result.found
+ line["row_class"] == 'XXnot_foundXX' and trial.result.found
):
line["row_class"] = "partial_found"
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:141
@@ -138,7 +138,7 @@
if line["row_class"] == "plain":
line["row_class"] = "found" if trial.result.found else "not_found"
elif (line["row_class"] == "found" and not trial.result.found) or (
- line["row_class"] == "not_found" and trial.result.found
+ None == "not_found" and trial.result.found
):
line["row_class"] = "partial_found"
|
||
| 142 |
): |
|
| ▸ | 143 |
line["row_class"] = "partial_found" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:143
@@ -140,7 +140,7 @@
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
- line["row_class"] = "partial_found"
+ line['XXrow_classXX'] = "partial_found"
def module_summary(module_trials: list[MutantTrial]) -> TestingSummary:
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:143
@@ -140,7 +140,7 @@
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
- line["row_class"] = "partial_found"
+ line["row_class"] = 'XXpartial_foundXX'
def module_summary(module_trials: list[MutantTrial]) -> TestingSummary:
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:143
@@ -140,7 +140,7 @@
elif (line["row_class"] == "found" and not trial.result.found) or (
line["row_class"] == "not_found" and trial.result.found
):
- line["row_class"] = "partial_found"
+ None = "partial_found"
def module_summary(module_trials: list[MutantTrial]) -> TestingSummary:
|
||
| 144 | ||
| 145 | ||
| 146 |
def module_summary(module_trials: list[MutantTrial]) -> TestingSummary: |
|
| 147 |
"""Return summary for a module.""" |
|
| ▸ | 148 |
summary = TestingSummary() |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:148
@@ -145,7 +145,7 @@
def module_summary(module_trials: list[MutantTrial]) -> TestingSummary:
"""Return summary for a module."""
- summary = TestingSummary()
+ summary = None
for trial in module_trials:
summary += trial.result
summary.trials = len(module_trials)
|
||
| 149 |
for trial in module_trials: |
|
| ▸ | 150 |
summary += trial.result |
|
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:150
@@ -147,7 +147,7 @@
"""Return summary for a module."""
summary = TestingSummary()
for trial in module_trials:
- summary += trial.result
+ summary = trial.result
summary.trials = len(module_trials)
return summary
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:150
@@ -147,7 +147,7 @@
"""Return summary for a module."""
summary = TestingSummary()
for trial in module_trials:
- summary += trial.result
+ summary -= trial.result
summary.trials = len(module_trials)
return summary
Status: Mutant Found Mutator Name: AugAssign Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:150
@@ -147,7 +147,7 @@
"""Return summary for a module."""
summary = TestingSummary()
for trial in module_trials:
- summary += trial.result
+ summary *= trial.result
summary.trials = len(module_trials)
return summary
|
||
| ▸ | 151 |
summary.trials = len(module_trials) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:151
@@ -148,7 +148,7 @@
summary = TestingSummary()
for trial in module_trials:
summary += trial.result
- summary.trials = len(module_trials)
+ summary.trials = None
return summary
|
||
| ▸ | 152 |
return summary |
|
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:152
@@ -149,7 +149,7 @@
for trial in module_trials:
summary += trial.result
summary.trials = len(module_trials)
- return summary
+ return None
def remove_found_trials(trials: list[MutantTrial]) -> list[MutantTrial]:
|
||
| 153 | ||
| 154 | ||
| 155 |
def remove_found_trials(trials: list[MutantTrial]) -> list[MutantTrial]: |
|
| 156 |
"""Remove not found trials from a list of trials.""" |
|
| ▸ | 157 |
return [trial for trial in trials if not trial.result.found] |
|
Status: Mutant Found Mutator Name: UnaryOp Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:157
@@ -154,4 +154,4 @@
def remove_found_trials(trials: list[MutantTrial]) -> list[MutantTrial]:
"""Remove not found trials from a list of trials."""
- return [trial for trial in trials if not trial.result.found]
+ return [trial for trial in trials if trial.result.found]
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\reporters\html.py
+++ [Mutant] src\poodle\reporters\html.py:157
@@ -154,4 +154,4 @@
def remove_found_trials(trials: list[MutantTrial]) -> list[MutantTrial]:
"""Remove not found trials from a list of trials."""
- return [trial for trial in trials if not trial.result.found]
+ return None
|