AbstractCallableBoolean.java

1
package com.jsql.model.injection.strategy.blind;
2
3
import java.util.concurrent.Callable;
4
5
/**
6
 * Callable used to read blind/time database information.
7
 */
8
public abstract class AbstractCallableBoolean<T extends AbstractCallableBoolean<T>> implements Callable<T> {
9
    
10
    /**
11
     * The URL called.
12
     */
13
    protected String booleanUrl;
14
    
15
    /**
16
     * Character position.
17
     */
18
    protected int currentIndex;
19
    
20
    /**
21
     * Bit searched.
22
     */
23
    protected int currentBit;
24
    int idPage = -1;
25
    int block = -1;
26
27
    /**
28
     * Default call used for bit test.
29
     */
30
    protected boolean isMultibit = false;
31
32
    /**
33
     * Character representation of Boolean bits
34
     */
35
    protected String charText;
36
    
37
    /**
38
     * Check if a response time means the SQL query is true.
39
     * @return true if the current SQL test is confirmed
40
     */
41
    public abstract boolean isTrue();
42
    
43
    public int getCurrentIndex() {
44 1 1. getCurrentIndex : replaced int return with 0 for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCurrentIndex → NO_COVERAGE
        return this.currentIndex;
45
    }
46
    
47
    public int getCurrentBit() {
48 1 1. getCurrentBit : replaced int return with 0 for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCurrentBit → NO_COVERAGE
        return this.currentBit;
49
    }
50
51
    public String getCharText() {
52 1 1. getCharText : replaced return value with "" for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCharText → NO_COVERAGE
        return charText;
53
    }
54
55
    public boolean isMultibit() {
56 2 1. isMultibit : replaced boolean return with true for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::isMultibit → NO_COVERAGE
2. isMultibit : replaced boolean return with false for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::isMultibit → NO_COVERAGE
        return isMultibit;
57
    }
58
}

Mutations

44

1.1
Location : getCurrentIndex
Killed by : none
replaced int return with 0 for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCurrentIndex → NO_COVERAGE

48

1.1
Location : getCurrentBit
Killed by : none
replaced int return with 0 for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCurrentBit → NO_COVERAGE

52

1.1
Location : getCharText
Killed by : none
replaced return value with "" for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::getCharText → NO_COVERAGE

56

1.1
Location : isMultibit
Killed by : none
replaced boolean return with true for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::isMultibit → NO_COVERAGE

2.2
Location : isMultibit
Killed by : none
replaced boolean return with false for com/jsql/model/injection/strategy/blind/AbstractCallableBoolean::isMultibit → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1