Portfolio Code | Clement Colmerauer
Repositories
Site
Kata refactoring
Code
Commits
Branches
Tags
Search
Tree:
2fce22c
Branches
Tags
master
Kata refactoring
build
reports
pitest
re.forestier.edu.rpg
player.java.html
corrigé
Clement COLMERAUER
commited
2fce22c
at 2024-10-07 10:30:57
player.java.html
Blame
History
Raw
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../style.css"> </head> <body> <h1>player.java</h1> <table class="src"> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_1'/> 1 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_1'></a> <span> </span> </span> </td> <td class=''><pre><span class=''>package re.forestier.edu.rpg;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_2'/> 2 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_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@126253fd_3'/> 3 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_3'></a> <span> </span> </span> </td> <td class=''><pre><span class=''>import java.util.ArrayList;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_4'/> 4 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_4'></a> <span> </span> </span> </td> <td class=''><pre><span class=''>import java.util.HashMap;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_5'/> 5 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_5'></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@126253fd_6'/> 6 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_6'></a> <span> </span> </span> </td> <td class=''><pre><span class=''>public class player {</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_7'/> 7 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_7'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public String playerName;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_8'/> 8 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_8'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public String Avatar_name;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_9'/> 9 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_9'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> private String AvatarClass;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_10'/> 10 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_10'></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@126253fd_11'/> 11 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_11'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public Integer money;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_12'/> 12 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_12'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> private Float __real_money__;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_13'/> 13 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_13'></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@126253fd_14'/> 14 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_14'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public int level;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_15'/> 15 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_15'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public int healthpoints;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_16'/> 16 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_16'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public int currenthealthpoints;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_17'/> 17 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_17'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> protected int xp;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_18'/> 18 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_18'></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@126253fd_19'/> 19 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_19'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public HashMap<String, Integer> abilities; //Ability = stat</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_20'/> 20 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_20'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public ArrayList<String> inventory;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_21'/> 21 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_21'></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@126253fd_22'/> 22 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_22'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> public player(String playerName, String avatar_name, String avatarClass, int money, ArrayList<String> inventory) {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_23'/> 23 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_23'>3</a> <span> 1. <init> : negated conditional → KILLED<br/> 2. <init> : negated conditional → KILLED<br/> 3. <init> : negated conditional → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> if (!avatarClass.equals("ARCHER") && !avatarClass.equals("ADVENTURER") && !avatarClass.equals("DWARF")) </span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_24'/> 24 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_24'></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@126253fd_25'/> 25 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_25'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> return;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_26'/> 26 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_26'></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@126253fd_27'/> 27 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_27'></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@126253fd_28'/> 28 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_28'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> this.playerName = playerName;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_29'/> 29 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_29'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> Avatar_name = avatar_name;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_30'/> 30 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_30'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> AvatarClass = avatarClass;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_31'/> 31 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_31'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> this.money = Integer.valueOf(money);</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_32'/> 32 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_32'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> this.inventory = inventory;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_33'/> 33 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_33'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> this.abilities = UpdatePlayer.abilitiesPerTypeAndLevel().get(AvatarClass).get(1);</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_34'/> 34 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_34'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> }</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_35'/> 35 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_35'></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@126253fd_36'/> 36 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_36'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public String getAvatarClass () {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_37'/> 37 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_37'>1</a> <span> 1. getAvatarClass : replaced return value with "" for re/forestier/edu/rpg/player::getAvatarClass → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> return AvatarClass;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_38'/> 38 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_38'></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@126253fd_39'/> 39 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_39'></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@126253fd_40'/> 40 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_40'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public void removeMoney(int amount) throws IllegalArgumentException {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_41'/> 41 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_41'>3</a> <span> 1. removeMoney : changed conditional boundary → KILLED<br/> 2. removeMoney : Replaced integer subtraction with addition → KILLED<br/> 3. removeMoney : negated conditional → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> if (money - amount < 0) {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_42'/> 42 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_42'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> throw new IllegalArgumentException("Player can't have a negative money!");</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_43'/> 43 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_43'></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@126253fd_44'/> 44 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_44'></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@126253fd_45'/> 45 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_45'>1</a> <span> 1. removeMoney : Replaced integer subtraction with addition → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> money = Integer.parseInt(money.toString()) - amount;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_46'/> 46 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_46'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> }</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_47'/> 47 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_47'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public void addMoney(int amount) {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_48'/> 48 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_48'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> var value = Integer.valueOf(amount);</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_49'/> 49 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_49'>2</a> <span> 1. addMoney : negated conditional → KILLED<br/> 2. addMoney : Replaced integer addition with subtraction → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> money = money + (value != null ? value : 0);</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_50'/> 50 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_50'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> }</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_51'/> 51 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_51'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public int retrieveLevel() {</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_52'/> 52 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_52'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> // (lvl-1) * 10 + round((lvl * xplvl-1)/4)</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_53'/> 53 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_53'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> HashMap<Integer, Integer> levels = new HashMap<>();</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_54'/> 54 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_54'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> levels.put(2,10); // 1*10 + ((2*0)/4)</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_55'/> 55 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_55'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> levels.put(3,27); // 2*10 + ((3*10)/4)</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_56'/> 56 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_56'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> levels.put(4,57); // 3*10 + ((4*27)/4)</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_57'/> 57 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_57'></a> <span> </span> </span> </td> <td class='covered'><pre><span class=''> levels.put(5,111); // 4*10 + ((5*57)/4)</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_58'/> 58 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_58'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> //TODO : ajouter les prochains niveaux</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_59'/> 59 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_59'></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@126253fd_60'/> 60 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_60'>2</a> <span> 1. retrieveLevel : changed conditional boundary → KILLED<br/> 2. retrieveLevel : negated conditional → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> if (xp < levels.get(2)) {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_61'/> 61 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_61'>1</a> <span> 1. retrieveLevel : replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> return 1;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_62'/> 62 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_62'></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@126253fd_63'/> 63 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_63'>3</a> <span> 1. retrieveLevel : negated conditional → KILLED<br/> 2. retrieveLevel : replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED<br/> 3. retrieveLevel : changed conditional boundary → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> else if (xp < levels.get(3)) {return 2;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_64'/> 64 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_64'></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@126253fd_65'/> 65 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_65'>2</a> <span> 1. retrieveLevel : negated conditional → KILLED<br/> 2. retrieveLevel : changed conditional boundary → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> if (xp < levels.get(4)) {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_66'/> 66 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_66'>1</a> <span> 1. retrieveLevel : replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> return 3;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_67'/> 67 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_67'></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@126253fd_68'/> 68 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_68'>3</a> <span> 1. retrieveLevel : negated conditional → KILLED<br/> 2. retrieveLevel : changed conditional boundary → KILLED<br/> 3. retrieveLevel : replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> if (xp < levels.get(5)) return 4;</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_69'/> 69 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_69'>1</a> <span> 1. retrieveLevel : replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> return 5;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_70'/> 70 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_70'></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@126253fd_71'/> 71 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_71'></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@126253fd_72'/> 72 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_72'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> public int getXp() {</span></pre></td></tr> <tr> <td class='covered'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_73'/> 73 </td> <td class='killed'> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_73'>1</a> <span> 1. getXp : replaced int return with 0 for re/forestier/edu/rpg/player::getXp → KILLED<br/> </span> </span> </td> <td class='covered'><pre><span class='killed'> return this.xp;</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_74'/> 74 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_74'></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@126253fd_75'/> 75 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_75'></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@126253fd_76'/> 76 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_76'></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@126253fd_77'/> 77 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_77'></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@126253fd_78'/> 78 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_78'></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@126253fd_79'/> 79 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_79'></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@126253fd_80'/> 80 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_80'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> 250 г муки</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_81'/> 81 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_81'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> 125 г сливочного масла (холодное)</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_82'/> 82 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_82'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> 70 г сахара</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_83'/> 83 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_83'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> 1 яйцо</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_84'/> 84 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_84'></a> <span> </span> </span> </td> <td class=''><pre><span class=''> 1 щепотка соли</span></pre></td></tr> <tr> <td class='na'> <a name='org.pitest.mutationtest.report.html.SourceFile@126253fd_85'/> 85 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_85'></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@126253fd_86'/> 86 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_86'></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@126253fd_87'/> 87 </td> <td class=''> <span class='pop'> <a href='#grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_87'></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@126253fd_23'>23</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_23'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b><init><br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testPlayerName()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b><init><br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testPlayerConstructor()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b><init><br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testPlayerConstructor()]</span></span> negated conditional → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_37'>37</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_37'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getAvatarClass<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced return value with "" for re/forestier/edu/rpg/player::getAvatarClass → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_41'>41</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_41'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>removeMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRemoveMoney()]</span></span> changed conditional boundary → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>removeMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRemoveMoney()]</span></span> Replaced integer subtraction with addition → KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>removeMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRemoveMoney()]</span></span> negated conditional → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_45'>45</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_45'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>removeMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRemoveMoney()]</span></span> Replaced integer subtraction with addition → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_49'>49</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_49'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>addMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAddMoney()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>addMoney<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAddMoney()]</span></span> Replaced integer addition with subtraction → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_60'>60</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_60'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> changed conditional boundary → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAfficage()]</span></span> negated conditional → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_61'>61</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_61'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAfficage()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_63'>63</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_63'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> changed conditional boundary → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_65'>65</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_65'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> changed conditional boundary → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_66'>66</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_66'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_68'>68</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_68'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> negated conditional → KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> changed conditional boundary → KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_69'>69</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_69'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>retrieveLevel<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::retrieveLevel → KILLED</p> </td> </tr> <tr> <td><a href='#org.pitest.mutationtest.report.html.SourceFile@126253fd_73'>73</a></td> <td></td> <td> <a name='grouporg.pitest.mutationtest.report.html.SourceFile@126253fd_73'/> <p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getXp<br/><b>Killed by : </b>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()]</span></span> replaced int return with 0 for re/forestier/edu/rpg/player::getXp → 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>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRetrieveLevel()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testMajFinTour()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testPlayerName()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAddMoney()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testPlayerConstructor()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testAfficage()] (0 ms)</li><li>re.forestier.edu.UnitTests.[engine:junit-jupiter]/[class:re.forestier.edu.UnitTests]/[method:testRemoveMoney()] (1 ms)</li><li>re.forestier.edu.GlobalTest.[engine:junit-jupiter]/[class:re.forestier.edu.GlobalTest]/[method:testAffichageBase()] (135 ms)</li> </ul> <br/> Report generated by <a href='https://pitest.org'>PIT</a> 1.15.0 </body> </html>