FetchRewardDataServiceImpl.java

1
package org.cardanofoundation.explorer.api.service.impl;
2
3
import java.util.*;
4
5
import lombok.RequiredArgsConstructor;
6
7
import org.springframework.context.annotation.Profile;
8
import org.springframework.stereotype.Service;
9
10
import org.cardanofoundation.explorer.api.service.FetchRewardDataService;
11
import org.cardanofoundation.explorer.common.entity.ledgersync.Epoch;
12
13
@Profile("!koios")
14
@Service
15
@RequiredArgsConstructor
16
public class FetchRewardDataServiceImpl implements FetchRewardDataService {
17
18
  @Override
19
  public boolean checkRewardAvailable(String stakeKey) {
20 1 1. checkRewardAvailable : replaced boolean return with false for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardAvailable → NO_COVERAGE
    return true;
21
  }
22
23
  @Override
24
  public Boolean fetchReward(String stakeKey) {
25 1 1. fetchReward : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchReward → NO_COVERAGE
    return true;
26
  }
27
28
  @Override
29
  public Boolean checkRewardAvailable(List<String> stakeAddressList) {
30 1 1. checkRewardAvailable : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardAvailable → NO_COVERAGE
    return true;
31
  }
32
33
  @Override
34
  public Boolean fetchReward(List<String> stakeAddressList) {
35 1 1. fetchReward : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchReward → NO_COVERAGE
    return true;
36
  }
37
38
  @Override
39
  public Boolean checkPoolHistoryForPool(Set<String> poolIds) {
40 1 1. checkPoolHistoryForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkPoolHistoryForPool → NO_COVERAGE
    return true;
41
  }
42
43
  @Override
44
  public Boolean fetchPoolHistoryForPool(Set<String> poolIds) {
45 1 1. fetchPoolHistoryForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchPoolHistoryForPool → NO_COVERAGE
    return true;
46
  }
47
48
  @Override
49
  public Boolean checkRewardForPool(List<String> rewardAccounts) {
50 1 1. checkRewardForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardForPool → NO_COVERAGE
    return true;
51
  }
52
53
  @Override
54
  public Boolean fetchRewardForPool(List<String> rewardAccounts) {
55 1 1. fetchRewardForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchRewardForPool → NO_COVERAGE
    return true;
56
  }
57
58
  @Override
59
  public Boolean checkEpochStakeForPool(List<String> rewardAccounts) {
60 1 1. checkEpochStakeForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkEpochStakeForPool → NO_COVERAGE
    return true;
61
  }
62
63
  @Override
64
  public Boolean fetchEpochStakeForPool(List<String> rewardAccounts) {
65 1 1. fetchEpochStakeForPool : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchEpochStakeForPool → NO_COVERAGE
    return true;
66
  }
67
68
  @Override
69
  public Boolean checkAdaPots(Integer epochNo) {
70 1 1. checkAdaPots : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkAdaPots → NO_COVERAGE
    return true;
71
  }
72
73
  @Override
74
  public Boolean fetchAdaPots(List<Integer> epochNo) {
75 1 1. fetchAdaPots : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchAdaPots → NO_COVERAGE
    return true;
76
  }
77
78
  @Override
79
  public Boolean checkEpochRewardDistributed(Epoch epoch) {
80 1 1. checkEpochRewardDistributed : replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkEpochRewardDistributed → NO_COVERAGE
    return true;
81
  }
82
83
  @Override
84
  public List<Epoch> fetchEpochRewardDistributed(List<Integer> epochNo) {
85
    return Collections.emptyList();
86
  }
87
88
  @Override
89
  public Boolean useKoios() {
90 1 1. useKoios : replaced Boolean return with True for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::useKoios → NO_COVERAGE
    return false;
91
  }
92
}

Mutations

20

1.1
Location : checkRewardAvailable
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardAvailable → NO_COVERAGE

25

1.1
Location : fetchReward
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchReward → NO_COVERAGE

30

1.1
Location : checkRewardAvailable
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardAvailable → NO_COVERAGE

35

1.1
Location : fetchReward
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchReward → NO_COVERAGE

40

1.1
Location : checkPoolHistoryForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkPoolHistoryForPool → NO_COVERAGE

45

1.1
Location : fetchPoolHistoryForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchPoolHistoryForPool → NO_COVERAGE

50

1.1
Location : checkRewardForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkRewardForPool → NO_COVERAGE

55

1.1
Location : fetchRewardForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchRewardForPool → NO_COVERAGE

60

1.1
Location : checkEpochStakeForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkEpochStakeForPool → NO_COVERAGE

65

1.1
Location : fetchEpochStakeForPool
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchEpochStakeForPool → NO_COVERAGE

70

1.1
Location : checkAdaPots
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkAdaPots → NO_COVERAGE

75

1.1
Location : fetchAdaPots
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::fetchAdaPots → NO_COVERAGE

80

1.1
Location : checkEpochRewardDistributed
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::checkEpochRewardDistributed → NO_COVERAGE

90

1.1
Location : useKoios
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/service/impl/FetchRewardDataServiceImpl::useKoios → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.14.2