Wprowadzenie_do_testowania/Pit raport po testowaniu mutacyjnym/com.epam.bootcamp.bmi_calculator.interfacesImplements/MetricBMI.java.html
2022-06-20 14:04:23 +02:00

345 lines
9.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>MetricBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class MetricBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_10'/>
10
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_10'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_12'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_14'/>
14
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_14'>2</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = weight/(height*height); //sz&#225;molja a metrikus BMI-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_15'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@491cafec_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@491cafec_10'>10</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_10'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest27(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@491cafec_14'>14</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@491cafec_14'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest27(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest27(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest23(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest30(com.epam.bootcamp.bmi_calculator.BMITest) (12 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest27(com.epam.bootcamp.bmi_calculator.BMITest) (0 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest17(com.epam.bootcamp.bmi_calculator.BMITest) (7 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest9(com.epam.bootcamp.bmi_calculator.BMITest) (0 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest21(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest39(com.epam.bootcamp.bmi_calculator.BMITest) (0 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest29(com.epam.bootcamp.bmi_calculator.BMITest) (0 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest24(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest16(com.epam.bootcamp.bmi_calculator.BMITest) (6 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest1(com.epam.bootcamp.bmi_calculator.BMITest) (13 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest) (4 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest22(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest28(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest25(com.epam.bootcamp.bmi_calculator.BMITest) (5 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>