TxGraph.java

1
package org.cardanofoundation.explorer.api.model.response.dashboard;
2
3
import static org.cardanofoundation.explorer.api.config.JacksonMapperDateConfig.DATE_TIME_FORMAT;
4
5
import java.math.BigInteger;
6
import java.util.Date;
7
8
import lombok.AllArgsConstructor;
9
import lombok.Builder;
10
import lombok.Data;
11
import lombok.NoArgsConstructor;
12
13
import com.fasterxml.jackson.annotation.JsonFormat;
14
15
import org.cardanofoundation.explorer.common.utils.JsonUtil;
16
17 38 1. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
2. hashCode : Replaced integer multiplication with division → NO_COVERAGE
3. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
4. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
5. equals : negated conditional → NO_COVERAGE
6. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
7. hashCode : negated conditional → NO_COVERAGE
8. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
9. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
10. hashCode : Replaced integer multiplication with division → NO_COVERAGE
11. equals : negated conditional → NO_COVERAGE
12. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
13. equals : negated conditional → NO_COVERAGE
14. hashCode : negated conditional → NO_COVERAGE
15. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
16. equals : negated conditional → NO_COVERAGE
17. hashCode : Replaced integer multiplication with division → NO_COVERAGE
18. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
19. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::canEqual → NO_COVERAGE
20. equals : negated conditional → NO_COVERAGE
21. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE
22. hashCode : negated conditional → NO_COVERAGE
23. equals : negated conditional → NO_COVERAGE
24. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
25. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::hashCode → NO_COVERAGE
26. equals : negated conditional → NO_COVERAGE
27. equals : negated conditional → NO_COVERAGE
28. equals : negated conditional → NO_COVERAGE
29. equals : negated conditional → NO_COVERAGE
30. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
31. hashCode : negated conditional → NO_COVERAGE
32. equals : negated conditional → NO_COVERAGE
33. equals : negated conditional → NO_COVERAGE
34. hashCode : Replaced integer multiplication with division → NO_COVERAGE
35. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::canEqual → NO_COVERAGE
36. equals : negated conditional → NO_COVERAGE
37. equals : negated conditional → NO_COVERAGE
38. equals : negated conditional → NO_COVERAGE
@Data
18 7 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::toString → NO_COVERAGE
2. smartContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::smartContract → KILLED
3. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::build → KILLED
4. simpleTransactions : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::simpleTransactions → KILLED
5. metadata : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::metadata → KILLED
6. date : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::date → KILLED
7. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::builder → KILLED
@Builder
19
@NoArgsConstructor
20
@AllArgsConstructor
21
public class TxGraph {
22
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DATE_TIME_FORMAT)
23 1 1. getDate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getDate → KILLED
  private Date date;
24
25 1 1. getSimpleTransactions : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getSimpleTransactions → KILLED
  private BigInteger simpleTransactions;
26 1 1. getSmartContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getSmartContract → KILLED
  private BigInteger smartContract;
27 1 1. getMetadata : replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getMetadata → KILLED
  private BigInteger metadata;
28
29
  @Override
30
  public String toString() {
31 1 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::toString → NO_COVERAGE
    return JsonUtil.getPrettyJson(this);
32
  }
33
}

Mutations

17

1.1
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

3.3
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

4.4
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

6.6
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

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

9.9
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

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

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

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

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

15.15
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

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

18.18
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

19.19
Location : canEqual
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::canEqual → NO_COVERAGE

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

21.21
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::equals → NO_COVERAGE

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

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

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

25.25
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::hashCode → NO_COVERAGE

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

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

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

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

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

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

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

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

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

35.35
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::canEqual → NO_COVERAGE

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

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

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

18

1.1
Location : smartContract
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::smartContract → KILLED

2.2
Location : build
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::build → KILLED

3.3
Location : simpleTransactions
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::simpleTransactions → KILLED

4.4
Location : metadata
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::metadata → KILLED

5.5
Location : date
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::date → KILLED

6.6
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph$TxGraphBuilder::toString → NO_COVERAGE

7.7
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::builder → KILLED

23

1.1
Location : getDate
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getDate → KILLED

25

1.1
Location : getSimpleTransactions
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getSimpleTransactions → KILLED

26

1.1
Location : getSmartContract
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getSmartContract → KILLED

27

1.1
Location : getMetadata
Killed by : org.cardanofoundation.explorer.api.service.TransactionGraphTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TransactionGraphTest]/[method:getTxChartThreeMonth()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::getMetadata → KILLED

31

1.1
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/dashboard/TxGraph::toString → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.14.2