Modifier and Type | Field | Description |
---|---|---|
protected CounterImpl |
branches |
branch counter
|
static LineImpl |
EMPTY |
Empty line without instructions or branches.
|
protected CounterImpl |
instructions |
instruction counter
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
ICounter |
getBranchCounter() |
Returns the branches counter for this line.
|
ICounter |
getInstructionCounter() |
Returns the instruction counter for this line.
|
int |
getStatus() |
Returns the coverage status of this line, calculated from the
instructions counter and branch counter.
|
int |
hashCode() |
|
abstract LineImpl |
increment(ICounter instructions,
ICounter branches) |
Adds the given counters to this line.
|
public static final LineImpl EMPTY
protected CounterImpl instructions
protected CounterImpl branches
public abstract LineImpl increment(ICounter instructions, ICounter branches)
instructions
- instructions to addbranches
- branches to addpublic int getStatus()
ILine
getStatus
in interface ILine
ICounter.EMPTY
,
ICounter.NOT_COVERED
,
ICounter.PARTLY_COVERED
,
ICounter.FULLY_COVERED
public ICounter getInstructionCounter()
ILine
getInstructionCounter
in interface ILine
public ICounter getBranchCounter()
ILine
getBranchCounter
in interface ILine
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018. All rights reserved.