-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutation-testing-report.json
1 lines (1 loc) · 5.34 KB
/
mutation-testing-report.json
1
{"mutant_trials": [{"mutant": {"mutator_name": "Number", "lineno": 37, "col_offset": 52, "end_lineno": 37, "end_col_offset": 53, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:37\n@@ -34,7 +34,7 @@\n for nodeid in recorded_times:\n node_data = _sort_data.get(nodeid, {})\n \n- node_data[\"setup\"] = node_data.get(\"setup\", 0)\n+ node_data[\"setup\"] = node_data.get(\"setup\", -1)\n node_data[\"call\"] = node_data.get(\"call\", 0)\n node_data[\"teardown\"] = node_data.get(\"teardown\", 0)\n \n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.406553030014038}, {"mutant": {"mutator_name": "Number", "lineno": 38, "col_offset": 50, "end_lineno": 38, "end_col_offset": 51, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:38\n@@ -35,7 +35,7 @@\n node_data = _sort_data.get(nodeid, {})\n \n node_data[\"setup\"] = node_data.get(\"setup\", 0)\n- node_data[\"call\"] = node_data.get(\"call\", 0)\n+ node_data[\"call\"] = node_data.get(\"call\", -1)\n node_data[\"teardown\"] = node_data.get(\"teardown\", 0)\n \n setup = recorded_times[nodeid].get(\"setup\", 0)\n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.4883456230163574}, {"mutant": {"mutator_name": "Number", "lineno": 39, "col_offset": 58, "end_lineno": 39, "end_col_offset": 59, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:39\n@@ -36,7 +36,7 @@\n \n node_data[\"setup\"] = node_data.get(\"setup\", 0)\n node_data[\"call\"] = node_data.get(\"call\", 0)\n- node_data[\"teardown\"] = node_data.get(\"teardown\", 0)\n+ node_data[\"teardown\"] = node_data.get(\"teardown\", -1)\n \n setup = recorded_times[nodeid].get(\"setup\", 0)\n if node_data[\"setup\"] < setup:\n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.218832015991211}, {"mutant": {"mutator_name": "Number", "lineno": 41, "col_offset": 52, "end_lineno": 41, "end_col_offset": 53, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:41\n@@ -38,7 +38,7 @@\n node_data[\"call\"] = node_data.get(\"call\", 0)\n node_data[\"teardown\"] = node_data.get(\"teardown\", 0)\n \n- setup = recorded_times[nodeid].get(\"setup\", 0)\n+ setup = recorded_times[nodeid].get(\"setup\", -1)\n if node_data[\"setup\"] < setup:\n node_data[\"setup\"] = setup\n \n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.6427171230316162}, {"mutant": {"mutator_name": "Number", "lineno": 45, "col_offset": 50, "end_lineno": 45, "end_col_offset": 51, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:45\n@@ -42,7 +42,7 @@\n if node_data[\"setup\"] < setup:\n node_data[\"setup\"] = setup\n \n- call = recorded_times[nodeid].get(\"call\", 0)\n+ call = recorded_times[nodeid].get(\"call\", -1)\n if node_data[\"call\"] < call:\n node_data[\"call\"] = call\n \n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.5783932209014893}, {"mutant": {"mutator_name": "Number", "lineno": 49, "col_offset": 58, "end_lineno": 49, "end_col_offset": 59, "text": "-1", "source_folder": "src", "source_file": "src/pytest_sort/database.py", "unified_diff": "--- src/pytest_sort/database.py\n+++ [Mutant] src/pytest_sort/database.py:49\n@@ -46,7 +46,7 @@\n if node_data[\"call\"] < call:\n node_data[\"call\"] = call\n \n- teardown = recorded_times[nodeid].get(\"teardown\", 0)\n+ teardown = recorded_times[nodeid].get(\"teardown\", -1)\n if node_data[\"teardown\"] < teardown:\n node_data[\"teardown\"] = teardown\n \n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.0852830410003662}, {"mutant": {"mutator_name": "FuncCall", "lineno": 69, "col_offset": 4, "end_lineno": 69, "end_col_offset": 14, "text": "None", "source_folder": "src", "source_file": "src/pytest_sort/diffcov.py", "unified_diff": "--- src/pytest_sort/diffcov.py\n+++ [Mutant] src/pytest_sort/diffcov.py:69\n@@ -66,7 +66,7 @@\n Return flattened data as (resolved_path, nodeid, when, line).\n \"\"\"\n cov = CoverageData()\n- cov.read()\n+ None\n for path in cov.measured_files():\n rpath = Path(path).resolve()\n for line, tests in cov.contexts_by_lineno(path).items():\n"}, "result": {"found": false, "reason_code": "Mutant Not Found", "reason_desc": null}, "duration": 1.0259461402893066}], "summary": {"trials": 732, "tested": 732, "found": 725, "not_found": 7, "timeout": 0, "errors": 0, "success_rate": 0.9904371584699454, "coverage_display": "99%"}}