CountBytesRead.java

1
package com.renomad.minum.web;
2
3
class CountBytesRead{
4
    private int count;
5 1 1. increment : Replaced integer addition with subtraction → KILLED
    public void increment() {count += 1;}
6
7
    public void incrementBy(int i) {
8 1 1. incrementBy : Replaced integer addition with subtraction → KILLED
        count += i;
9
    }
10
11
    public int getCount() {
12 1 1. getCount : replaced int return with 0 for com/renomad/minum/web/CountBytesRead::getCount → KILLED
        return count;
13
    }
14
}

Mutations

5

1.1
Location : increment
Killed by : com.renomad.minum.web.RequestTests.test_Request_getUrlEncoded_EdgeCase_PlayingWithClose(com.renomad.minum.web.RequestTests)
Replaced integer addition with subtraction → KILLED

8

1.1
Location : incrementBy
Killed by : com.renomad.minum.web.RequestTests.testReadingEmptyStreamingMultipart(com.renomad.minum.web.RequestTests)
Replaced integer addition with subtraction → KILLED

12

1.1
Location : getCount
Killed by : com.renomad.minum.web.RequestTests.test_Request_getUrlEncoded_EdgeCase_PlayingWithClose(com.renomad.minum.web.RequestTests)
replaced int return with 0 for com/renomad/minum/web/CountBytesRead::getCount → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.0