LombokExample.java

1
package org.demo.intestption;
2
3
import lombok.Data;
4
5 52 1. canEqual : replaced boolean return with false for org/demo/intestption/LombokExample::canEqual → SURVIVED
2. canEqual : replaced boolean return with true for org/demo/intestption/LombokExample::canEqual → SURVIVED
3. canEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
4. equals : replaced boolean return with false for org/demo/intestption/LombokExample::equals → SURVIVED
5. equals : replaced boolean return with false for org/demo/intestption/LombokExample::equals → SURVIVED
6. equals : replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED
7. equals : replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED
8. equals : replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED
9. equals : Substituted 1 with 0 → SURVIVED
10. equals : Substituted 0 with 1 → SURVIVED
11. equals : Substituted 0 with 1 → SURVIVED
12. equals : Substituted 0 with 1 → SURVIVED
13. equals : Substituted 1 with 0 → SURVIVED
14. equals : negated conditional → SURVIVED
15. equals : negated conditional → SURVIVED
16. equals : negated conditional → SURVIVED
17. equals : negated conditional → SURVIVED
18. equals : removed call to org/demo/intestption/LombokExample::canEqual → SURVIVED
19. equals : removed call to org/demo/intestption/LombokExample::getData → SURVIVED
20. equals : removed call to org/demo/intestption/LombokExample::getData → SURVIVED
21. equals : removed conditional - replaced equality check with false → SURVIVED
22. equals : removed conditional - replaced equality check with false → SURVIVED
23. equals : removed conditional - replaced equality check with false → SURVIVED
24. equals : removed conditional - replaced equality check with true → SURVIVED
25. equals : removed conditional - replaced equality check with true → SURVIVED
26. equals : removed conditional - replaced equality check with true → SURVIVED
27. equals : removed conditional - replaced equality check with true → SURVIVED
28. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
29. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
30. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
31. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
32. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
33. hashCode : Substituted 59 with 60 → SURVIVED
34. hashCode : Substituted 1 with 0 → SURVIVED
35. hashCode : Substituted 59 with 60 → SURVIVED
36. hashCode : Replaced integer multiplication with division → SURVIVED
37. hashCode : Replaced integer addition with subtraction → SURVIVED
38. hashCode : removed call to org/demo/intestption/LombokExample::getData → SURVIVED
39. hashCode : replaced int return with 0 for org/demo/intestption/LombokExample::hashCode → SURVIVED
40. hashCode : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
41. toString : removed call to java/lang/StringBuilder::<init> → SURVIVED
42. toString : replaced return value with "" for org/demo/intestption/LombokExample::toString → SURVIVED
43. toString : removed call to java/lang/StringBuilder::append → SURVIVED
44. toString : removed call to org/demo/intestption/LombokExample::getData → SURVIVED
45. toString : removed call to java/lang/StringBuilder::append → SURVIVED
46. toString : removed call to java/lang/StringBuilder::append → SURVIVED
47. toString : removed call to java/lang/StringBuilder::toString → SURVIVED
48. toString : mutated return of Object value for org/demo/intestption/LombokExample::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED
49. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
50. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
51. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
52. setData : Removed assignment to member variable data → KILLED
@Data
6
class LombokExample {
7
8 2 1. getData : replaced int return with 0 for org/demo/intestption/LombokExample::getData → KILLED
2. getData : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
    private int data;
9
10
    int useBlackMagic(int value) {
11 1 1. useBlackMagic : removed call to org/demo/intestption/LombokExample::setData → KILLED
        setData(value);
12 3 1. useBlackMagic : removed call to org/demo/intestption/LombokExample::getData → KILLED
2. useBlackMagic : replaced int return with 0 for org/demo/intestption/LombokExample::useBlackMagic → KILLED
3. useBlackMagic : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return getData();
13
    }
14
15
}

Mutations

5

1.1
Location : canEqual
Killed by : none
replaced boolean return with false for org/demo/intestption/LombokExample::canEqual → SURVIVED

2.2
Location : canEqual
Killed by : none
replaced boolean return with true for org/demo/intestption/LombokExample::canEqual → SURVIVED

3.3
Location : canEqual
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

4.4
Location : equals
Killed by : none
replaced boolean return with false for org/demo/intestption/LombokExample::equals → SURVIVED

5.5
Location : equals
Killed by : none
replaced boolean return with false for org/demo/intestption/LombokExample::equals → SURVIVED

6.6
Location : equals
Killed by : none
replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED

7.7
Location : equals
Killed by : none
replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED

8.8
Location : equals
Killed by : none
replaced boolean return with true for org/demo/intestption/LombokExample::equals → SURVIVED

9.9
Location : equals
Killed by : none
Substituted 1 with 0 → SURVIVED

10.10
Location : equals
Killed by : none
Substituted 0 with 1 → SURVIVED

11.11
Location : equals
Killed by : none
Substituted 0 with 1 → SURVIVED

12.12
Location : equals
Killed by : none
Substituted 0 with 1 → SURVIVED

13.13
Location : equals
Killed by : none
Substituted 1 with 0 → SURVIVED

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

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

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

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

18.18
Location : equals
Killed by : none
removed call to org/demo/intestption/LombokExample::canEqual → SURVIVED

19.19
Location : equals
Killed by : none
removed call to org/demo/intestption/LombokExample::getData → SURVIVED

20.20
Location : equals
Killed by : none
removed call to org/demo/intestption/LombokExample::getData → SURVIVED

21.21
Location : equals
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

22.22
Location : equals
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

23.23
Location : equals
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

24.24
Location : equals
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

25.25
Location : equals
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

26.26
Location : equals
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

27.27
Location : equals
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

28.28
Location : equals
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

29.29
Location : equals
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

30.30
Location : equals
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

31.31
Location : equals
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

32.32
Location : equals
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

33.33
Location : hashCode
Killed by : none
Substituted 59 with 60 → SURVIVED

34.34
Location : hashCode
Killed by : none
Substituted 1 with 0 → SURVIVED

35.35
Location : hashCode
Killed by : none
Substituted 59 with 60 → SURVIVED

36.36
Location : hashCode
Killed by : none
Replaced integer multiplication with division → SURVIVED

37.37
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → SURVIVED

38.38
Location : hashCode
Killed by : none
removed call to org/demo/intestption/LombokExample::getData → SURVIVED

39.39
Location : hashCode
Killed by : none
replaced int return with 0 for org/demo/intestption/LombokExample::hashCode → SURVIVED

40.40
Location : hashCode
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

41.41
Location : setData
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
Removed assignment to member variable data → KILLED

42.42
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::<init> → SURVIVED

43.43
Location : toString
Killed by : none
replaced return value with "" for org/demo/intestption/LombokExample::toString → SURVIVED

44.44
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::append → SURVIVED

45.45
Location : toString
Killed by : none
removed call to org/demo/intestption/LombokExample::getData → SURVIVED

46.46
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::append → SURVIVED

47.47
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::append → SURVIVED

48.48
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::toString → SURVIVED

49.49
Location : toString
Killed by : none
mutated return of Object value for org/demo/intestption/LombokExample::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED

50.50
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

51.51
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

52.52
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

8

1.1
Location : getData
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
replaced int return with 0 for org/demo/intestption/LombokExample::getData → KILLED

2.2
Location : getData
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

11

1.1
Location : useBlackMagic
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
removed call to org/demo/intestption/LombokExample::setData → KILLED

12

1.1
Location : useBlackMagic
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
removed call to org/demo/intestption/LombokExample::getData → KILLED

2.2
Location : useBlackMagic
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
replaced int return with 0 for org/demo/intestption/LombokExample::useBlackMagic → KILLED

3.3
Location : useBlackMagic
Killed by : org.demo.intestption.LombokExampleTest.useBlackMagic_ShowReturn1_WhenPassed1(org.demo.intestption.LombokExampleTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

Active mutators

Tests examined


Report generated by PIT 1.4.3