SyncStatus.java

1
package org.cardanofoundation.explorer.api.model.response.healthcheck;
2
3
import java.time.LocalDateTime;
4
5
import lombok.AllArgsConstructor;
6
import lombok.Builder;
7
import lombok.Getter;
8
import lombok.NoArgsConstructor;
9
import lombok.Setter;
10
11
import com.fasterxml.jackson.annotation.JsonInclude;
12
13
@Getter
14
@Setter
15
@AllArgsConstructor
16
@NoArgsConstructor
17 6 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::toString → NO_COVERAGE
2. latestBlockInsertTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::latestBlockInsertTime → KILLED
3. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::build → KILLED
4. isSyncing : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::isSyncing → KILLED
5. message : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::message → KILLED
6. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::builder → KILLED
@Builder
18
@JsonInclude
19
public class SyncStatus {
20 2 1. getIsSyncing : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getIsSyncing → KILLED
2. getIsSyncing : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getIsSyncing → KILLED
  Boolean isSyncing;
21 1 1. getMessage : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getMessage → KILLED
  String message;
22 1 1. getLatestBlockInsertTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getLatestBlockInsertTime → KILLED
  LocalDateTime latestBlockInsertTime;
23
}

Mutations

17

1.1
Location : latestBlockInsertTime
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::latestBlockInsertTime → KILLED

2.2
Location : build
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::build → KILLED

3.3
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::toString → NO_COVERAGE

4.4
Location : isSyncing
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::isSyncing → KILLED

5.5
Location : message
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus$SyncStatusBuilder::message → KILLED

6.6
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::builder → KILLED

20

1.1
Location : getIsSyncing
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getIsSyncing → KILLED

2.2
Location : getIsSyncing
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeNotAvailableInRedisAndNotSyncing()]
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getIsSyncing → KILLED

21

1.1
Location : getMessage
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeNotAvailableInRedisAndSyncOKAndReadyToSever()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getMessage → KILLED

22

1.1
Location : getLatestBlockInsertTime
Killed by : org.cardanofoundation.explorer.api.service.HealthCheckServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.HealthCheckServiceTest]/[method:testGetSyncStatus_WhenLatestBlockTimeAvailableInRedisAndSyncOK()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/healthcheck/SyncStatus::getLatestBlockInsertTime → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2