ThrowableChecker.java

1
package com.github.dakusui.pcond.core.fluent.builtins;
2
3
import com.github.dakusui.pcond.core.fluent.AbstractObjectChecker;
4
5
import java.util.function.Function;
6
import java.util.function.Supplier;
7
8
import static com.github.dakusui.pcond.internals.InternalUtils.trivialIdentityFunction;
9
10
public interface ThrowableChecker<
11
    T,
12
    E extends Throwable> extends
13
    AbstractObjectChecker<
14
        ThrowableChecker<T, E>,
15
        T,
16
        E> {
17
  class Impl<
18
      T,
19
      E extends Throwable
20
      > extends
21
      Base<
22
          ThrowableChecker<T, E>,
23
          T,
24
          E
25
          > implements
26
      ThrowableChecker<T, E> {
27
    protected Impl(Supplier<T> baseValue, Function<T, E> transformFunction) {
28
      super(baseValue, transformFunction);
29
    }
30
31
    @Override
32
    protected ThrowableChecker<E, E> rebase() {
33 1 1. rebase : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/ThrowableChecker$Impl::rebase → SURVIVED
      return new ThrowableChecker.Impl<>(this::value, trivialIdentityFunction());
34
    }
35
  }
36
}

Mutations

33

1.1
Location : rebase
Killed by : none
replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/ThrowableChecker$Impl::rebase → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.7.3