RankupPlaceholderExpansion.java

1
package sh.okx.rankup.placeholders;
2
3
import lombok.RequiredArgsConstructor;
4
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
5
import org.bukkit.entity.Player;
6
import sh.okx.rankup.RankupPlugin;
7
8
@RequiredArgsConstructor
9
public class RankupPlaceholderExpansion extends PlaceholderExpansion {
10
  private final RankupPlugin plugin;
11
  private final RankupExpansion expansion;
12
13
  @Override
14
  public String onPlaceholderRequest(Player player, String params) {
15 1 1. onPlaceholderRequest : replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::onPlaceholderRequest → NO_COVERAGE
    return expansion.placeholder(player, params);
16
  }
17
18
  @Override
19
  public String getIdentifier() {
20 1 1. getIdentifier : replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getIdentifier → NO_COVERAGE
    return "rankup";
21
  }
22
23
  @Override
24
  public String getAuthor() {
25 1 1. getAuthor : replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getAuthor → NO_COVERAGE
    return String.join(", ", plugin.getDescription().getAuthors());
26
  }
27
28
  @Override
29
  public String getVersion() {
30 1 1. getVersion : replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getVersion → NO_COVERAGE
    return plugin.getDescription().getVersion();
31
  }
32
33
  @Override
34
  public boolean persist() {
35 1 1. persist : replaced boolean return with false for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::persist → NO_COVERAGE
    return true;
36
  }
37
38
  @Override
39
  public boolean canRegister() {
40 1 1. canRegister : replaced boolean return with false for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::canRegister → NO_COVERAGE
    return true;
41
  }
42
}

Mutations

15

1.1
Location : onPlaceholderRequest
Killed by : none
replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::onPlaceholderRequest → NO_COVERAGE

20

1.1
Location : getIdentifier
Killed by : none
replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getIdentifier → NO_COVERAGE

25

1.1
Location : getAuthor
Killed by : none
replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getAuthor → NO_COVERAGE

30

1.1
Location : getVersion
Killed by : none
replaced return value with "" for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::getVersion → NO_COVERAGE

35

1.1
Location : persist
Killed by : none
replaced boolean return with false for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::persist → NO_COVERAGE

40

1.1
Location : canRegister
Killed by : none
replaced boolean return with false for sh/okx/rankup/placeholders/RankupPlaceholderExpansion::canRegister → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.7.0