DelegationResponse.java

1
package org.cardanofoundation.explorer.api.model.response;
2
3
import java.time.LocalDateTime;
4
import java.util.List;
5
6
import lombok.*;
7
8
import org.cardanofoundation.explorer.api.model.response.address.DelegationPoolResponse;
9
10
@Getter
11
@Setter
12 11 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::toString → NO_COVERAGE
2. pools : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::pools → KILLED
3. epochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::epochNo → KILLED
4. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::build → KILLED
5. time : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::time → KILLED
6. epochSlotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::epochSlotNo → KILLED
7. txHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::txHash → KILLED
8. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse::builder → KILLED
9. stakeKeys : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::stakeKeys → KILLED
10. blockNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::blockNo → KILLED
11. slotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::slotNo → KILLED
@Builder
13
@NoArgsConstructor
14
@AllArgsConstructor
15
public class DelegationResponse {
16 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getTxHash → KILLED
  private String txHash;
17 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getTime → SURVIVED
  private LocalDateTime time;
18 1 1. getBlockNo : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getBlockNo → SURVIVED
  private Long blockNo;
19 1 1. getEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getEpochNo → SURVIVED
  private Integer epochNo;
20 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getEpochSlotNo → SURVIVED
  private Integer epochSlotNo;
21 1 1. getSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getSlotNo → SURVIVED
  private Integer slotNo;
22 1 1. getStakeKeys : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getStakeKeys → SURVIVED
  private List<String> stakeKeys;
23 1 1. getPools : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getPools → SURVIVED
  private List<DelegationPoolResponse> pools;
24
}

Mutations

12

1.1
Location : pools
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::pools → KILLED

2.2
Location : epochNo
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::epochNo → KILLED

3.3
Location : build
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::build → KILLED

4.4
Location : time
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::time → KILLED

5.5
Location : epochSlotNo
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::epochSlotNo → KILLED

6.6
Location : txHash
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::txHash → KILLED

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

8.8
Location : stakeKeys
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::stakeKeys → KILLED

9.9
Location : blockNo
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::blockNo → KILLED

10.10
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::toString → NO_COVERAGE

11.11
Location : slotNo
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse$DelegationResponseBuilder::slotNo → KILLED

16

1.1
Location : getTxHash
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDelegatorsForPoolDetail()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getTxHash → KILLED

17

1.1
Location : getTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getTime → SURVIVED

18

1.1
Location : getBlockNo
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getBlockNo → SURVIVED

19

1.1
Location : getEpochNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getEpochNo → SURVIVED

20

1.1
Location : getEpochSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getEpochSlotNo → SURVIVED

21

1.1
Location : getSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getSlotNo → SURVIVED

22

1.1
Location : getStakeKeys
Killed by : none
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getStakeKeys → SURVIVED

23

1.1
Location : getPools
Killed by : none
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/DelegationResponse::getPools → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2