LongTransformer.java

1
package com.github.valid8j.pcond.core.fluent.builtins;
2
3
import com.github.valid8j.pcond.internals.InternalUtils;
4
5
import java.util.function.Function;
6
import java.util.function.Supplier;
7
8
public interface LongTransformer<
9
    T
10
    > extends
11
    ComparableNumberTransformer<
12
                LongTransformer<T>,
13
        LongChecker<T>,
14
                T,
15
                Long> {
16
  static LongTransformer<Long> create(Supplier<Long> value) {
17 1 1. create : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer::create → KILLED
    return new Impl<>(value, InternalUtils.trivialIdentityFunction());
18
  }
19
20
  class Impl<
21
      T
22
      > extends
23
      Base<
24
          LongTransformer<T>,
25
          LongChecker<T>,
26
          T,
27
          Long> implements
28
      LongTransformer<T> {
29
    public Impl(Supplier<T> baseValue, Function<T, Long> transformFunction) {
30
      super(baseValue, transformFunction);
31
    }
32
33
    @Override
34
    public LongChecker<T> toChecker(Function<T, Long> transformFunction) {
35 1 1. toChecker : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer$Impl::toChecker → KILLED
      return new LongChecker.Impl<>(this::baseValue, transformFunction);
36
    }
37
38
    @Override
39
    protected LongTransformer<Long> rebase() {
40 1 1. rebase : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer$Impl::rebase → NO_COVERAGE
      return new Impl<>(this::value, InternalUtils.trivialIdentityFunction());
41
    }
42
  }
43
44
}

Mutations

17

1.1
Location : create
Killed by : com.github.valid8j.ut.styles.MoreFluentComparableNumberCheckerTest.test_Long(com.github.valid8j.ut.styles.MoreFluentComparableNumberCheckerTest)
replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer::create → KILLED

35

1.1
Location : toChecker
Killed by : com.github.valid8j.ut.styles.MoreFluentComparableNumberCheckerTest.test_Long(com.github.valid8j.ut.styles.MoreFluentComparableNumberCheckerTest)
replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer$Impl::toChecker → KILLED

40

1.1
Location : rebase
Killed by : none
replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/LongTransformer$Impl::rebase → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.7.3