IoPair.java

1
package com.github.valid8j.metamor;
2
3
public interface IoPair<I, O> {
4
  I input();
5
6
  O output();
7
8
  class Impl<I, O> implements IoPair<I, O> {
9
10
    private final I input;
11
    private final O output;
12
13
    public Impl(I input, O output) {
14
      this.input = input;
15
      this.output = output;
16
    }
17
18
    @Override
19
    public I input() {
20 1 1. input : replaced return value with null for com/github/valid8j/metamor/IoPair$Impl::input → NO_COVERAGE
      return input;
21
    }
22
23
    @Override
24
    public O output() {
25 1 1. output : replaced return value with null for com/github/valid8j/metamor/IoPair$Impl::output → KILLED
      return output;
26
    }
27
28
    public String toString() {
29 1 1. toString : replaced return value with "" for com/github/valid8j/metamor/IoPair$Impl::toString → SURVIVED
      return String.format("[%s]=>[%s]", input, output);
30
    }
31
  }
32
33
  static <I, O> IoPair<I, O> create(I input, O output) {
34 1 1. create : replaced return value with null for com/github/valid8j/metamor/IoPair::create → KILLED
    return new Impl<>(input, output);
35
  }
36
}

Mutations

20

1.1
Location : input
Killed by : none
replaced return value with null for com/github/valid8j/metamor/IoPair$Impl::input → NO_COVERAGE

25

1.1
Location : output
Killed by : com.github.valid8j.examples.test.ExamplesTest.testMetarmorExamplePassing(com.github.valid8j.examples.test.ExamplesTest)
replaced return value with null for com/github/valid8j/metamor/IoPair$Impl::output → KILLED

29

1.1
Location : toString
Killed by : none
replaced return value with "" for com/github/valid8j/metamor/IoPair$Impl::toString → SURVIVED

34

1.1
Location : create
Killed by : com.github.valid8j.examples.test.ExamplesTest.testMetarmorExamplePassing(com.github.valid8j.examples.test.ExamplesTest)
replaced return value with null for com/github/valid8j/metamor/IoPair::create → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3