CountBytesRead.java

1
package com.renomad.minum.web;
2
3
class CountBytesRead{
4
    private long count;
5 1 1. increment : Replaced long addition with subtraction → KILLED
    public void increment() {count += 1;}
6
7
    public void incrementBy(long i) {
8 1 1. incrementBy : Replaced long addition with subtraction → KILLED
        count += i;
9
    }
10
11
    public long getCount() {
12 1 1. getCount : replaced long 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.BoundaryBugTest
Replaced long addition with subtraction → KILLED

8

1.1
Location : incrementBy
Killed by : com.renomad.minum.web.BoundaryBugTest
Replaced long addition with subtraction → KILLED

12

1.1
Location : getCount
Killed by : com.renomad.minum.web.BoundaryBugTest
replaced long return with 0 for com/renomad/minum/web/CountBytesRead::getCount → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.0