RankSerialized.java

1
package sh.okx.rankup.serialization;
2
3
import java.util.List;
4
import java.util.Map;
5
import lombok.Data;
6
import org.bukkit.configuration.ConfigurationSection;
7
import org.bukkit.configuration.MemoryConfiguration;
8
9 60 1. canEqual : replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::canEqual → NO_COVERAGE
2. canEqual : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::canEqual → NO_COVERAGE
3. equals : negated conditional → NO_COVERAGE
4. equals : negated conditional → NO_COVERAGE
5. equals : negated conditional → NO_COVERAGE
6. equals : negated conditional → NO_COVERAGE
7. equals : negated conditional → NO_COVERAGE
8. equals : negated conditional → NO_COVERAGE
9. equals : negated conditional → NO_COVERAGE
10. equals : negated conditional → NO_COVERAGE
11. equals : negated conditional → NO_COVERAGE
12. equals : negated conditional → NO_COVERAGE
13. equals : negated conditional → NO_COVERAGE
14. equals : negated conditional → NO_COVERAGE
15. equals : negated conditional → NO_COVERAGE
16. equals : negated conditional → NO_COVERAGE
17. equals : negated conditional → NO_COVERAGE
18. equals : negated conditional → NO_COVERAGE
19. equals : negated conditional → NO_COVERAGE
20. equals : negated conditional → NO_COVERAGE
21. equals : negated conditional → NO_COVERAGE
22. equals : negated conditional → NO_COVERAGE
23. equals : negated conditional → NO_COVERAGE
24. equals : negated conditional → NO_COVERAGE
25. equals : negated conditional → NO_COVERAGE
26. equals : negated conditional → NO_COVERAGE
27. equals : replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
28. equals : replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
29. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
30. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
31. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
32. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
33. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
34. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
35. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
36. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
37. equals : replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE
38. hashCode : Replaced integer multiplication with division → NO_COVERAGE
39. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
40. hashCode : Replaced integer multiplication with division → NO_COVERAGE
41. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
42. hashCode : Replaced integer multiplication with division → NO_COVERAGE
43. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
44. hashCode : Replaced integer multiplication with division → NO_COVERAGE
45. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
46. hashCode : Replaced integer multiplication with division → NO_COVERAGE
47. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
48. hashCode : Replaced integer multiplication with division → NO_COVERAGE
49. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
50. hashCode : Replaced integer multiplication with division → NO_COVERAGE
51. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
52. hashCode : negated conditional → NO_COVERAGE
53. hashCode : negated conditional → NO_COVERAGE
54. hashCode : negated conditional → NO_COVERAGE
55. hashCode : negated conditional → NO_COVERAGE
56. hashCode : negated conditional → NO_COVERAGE
57. hashCode : negated conditional → NO_COVERAGE
58. hashCode : negated conditional → NO_COVERAGE
59. hashCode : replaced int return with 0 for sh/okx/rankup/serialization/RankSerialized::hashCode → NO_COVERAGE
60. toString : replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::toString → NO_COVERAGE
@Data
10
public class RankSerialized {
11
12 1 1. getRank : replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getRank → KILLED
  private final String rank;
13 1 1. getNext : replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getNext → KILLED
  private final String next;
14
15 1 1. getDisplayName : replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getDisplayName → KILLED
  private final String displayName;
16
17 1 1. getCommands : replaced return value with Collections.emptyList for sh/okx/rankup/serialization/RankSerialized::getCommands → SURVIVED
  private final List<String> commands;
18
19 1 1. getRequirements : replaced return value with Collections.emptyList for sh/okx/rankup/serialization/RankSerialized::getRequirements → KILLED
  private final List<String> requirements;
20 1 1. getPrestigeRequirements : replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getPrestigeRequirements → KILLED
  private final Map<String, List<String>> prestigeRequirements;
21
22 1 1. getMessages : replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getMessages → NO_COVERAGE
  private final Map<String, String> messages;
23
24
  public ConfigurationSection getMessagesAsSection() {
25
    ConfigurationSection section = new MemoryConfiguration();
26
    for (Map.Entry<String, String> entry : messages.entrySet()) {
27 1 1. getMessagesAsSection : removed call to org/bukkit/configuration/ConfigurationSection::set → KILLED
      section.set(entry.getKey(), entry.getValue());
28
    }
29 1 1. getMessagesAsSection : replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getMessagesAsSection → KILLED
    return section;
30
  }
31
}

Mutations

9

1.1
Location : canEqual
Killed by : none
replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::canEqual → NO_COVERAGE

2.2
Location : canEqual
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::canEqual → NO_COVERAGE

3.3
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

5.5
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

6.6
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

7.7
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

8.8
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

9.9
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

10.10
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

11.11
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

12.12
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

13.13
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

14.14
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

15.15
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

16.16
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

17.17
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

18.18
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

19.19
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

20.20
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

21.21
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

22.22
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

23.23
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

24.24
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

25.25
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

26.26
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

27.27
Location : equals
Killed by : none
replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

28.28
Location : equals
Killed by : none
replaced boolean return with false for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

29.29
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

30.30
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

31.31
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

32.32
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

33.33
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

34.34
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

35.35
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

36.36
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

37.37
Location : equals
Killed by : none
replaced boolean return with true for sh/okx/rankup/serialization/RankSerialized::equals → NO_COVERAGE

38.38
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

39.39
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

40.40
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

41.41
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

42.42
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

43.43
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

44.44
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

45.45
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

46.46
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

47.47
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

48.48
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

49.49
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

50.50
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

51.51
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

52.52
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

53.53
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

54.54
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

55.55
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

56.56
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

57.57
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

58.58
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

59.59
Location : hashCode
Killed by : none
replaced int return with 0 for sh/okx/rankup/serialization/RankSerialized::hashCode → NO_COVERAGE

60.60
Location : toString
Killed by : none
replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::toString → NO_COVERAGE

12

1.1
Location : getRank
Killed by : sh.okx.rankup.pebble.PebbleTest.[engine:junit-jupiter]/[class:sh.okx.rankup.pebble.PebbleTest]/[method:testIterable()]
replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getRank → KILLED

13

1.1
Location : getNext
Killed by : sh.okx.rankup.requirements.MobKillsRequirementsTest.[engine:junit-jupiter]/[class:sh.okx.rankup.requirements.MobKillsRequirementsTest]/[method:testMobKillsRequirements()]
replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getNext → KILLED

15

1.1
Location : getDisplayName
Killed by : sh.okx.rankup.legacy.LegacyPlaceholderTest.[engine:junit-jupiter]/[class:sh.okx.rankup.legacy.LegacyPlaceholderTest]/[method:testLegacy()]
replaced return value with "" for sh/okx/rankup/serialization/RankSerialized::getDisplayName → KILLED

17

1.1
Location : getCommands
Killed by : none
replaced return value with Collections.emptyList for sh/okx/rankup/serialization/RankSerialized::getCommands → SURVIVED

19

1.1
Location : getRequirements
Killed by : sh.okx.rankup.requirements.MobKillsRequirementsTest.[engine:junit-jupiter]/[class:sh.okx.rankup.requirements.MobKillsRequirementsTest]/[method:testMobKillsRequirements()]
replaced return value with Collections.emptyList for sh/okx/rankup/serialization/RankSerialized::getRequirements → KILLED

20

1.1
Location : getPrestigeRequirements
Killed by : sh.okx.rankup.requirements.PrestigeRequirementsTest.[engine:junit-jupiter]/[class:sh.okx.rankup.requirements.PrestigeRequirementsTest]/[method:testPrestigeRequirements()]
replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getPrestigeRequirements → KILLED

22

1.1
Location : getMessages
Killed by : none
replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getMessages → NO_COVERAGE

27

1.1
Location : getMessagesAsSection
Killed by : sh.okx.rankup.toml.TomlTest.[engine:junit-jupiter]/[class:sh.okx.rankup.toml.TomlTest]/[method:testRequirementsNotMet()]
removed call to org/bukkit/configuration/ConfigurationSection::set → KILLED

29

1.1
Location : getMessagesAsSection
Killed by : sh.okx.rankup.toml.TomlTest.[engine:junit-jupiter]/[class:sh.okx.rankup.toml.TomlTest]/[method:testRequirementsNotMet()]
replaced return value with null for sh/okx/rankup/serialization/RankSerialized::getMessagesAsSection → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0