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

345 lines
8.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@4fa86cb8_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_10'/>
10
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_14'/>
14
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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@4fa86cb8_10'>10</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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.BMITest16(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@4fa86cb8_14'>14</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4fa86cb8_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.BMITest16(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.BMITest16(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.BMITest16(com.epam.bootcamp.bmi_calculator.BMITest) (0 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest1(com.epam.bootcamp.bmi_calculator.BMITest) (7 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest17(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest9(com.epam.bootcamp.bmi_calculator.BMITest) (15 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>