| Modifier and Type | Field and Description |
|---|---|
protected CounterImpl |
branches
branch counter
|
static LineImpl |
EMPTY
Empty line without instructions or branches.
|
protected CounterImpl |
instructions
instruction counter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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()
ILinegetStatus in interface ILineICounter.EMPTY,
ICounter.NOT_COVERED,
ICounter.PARTLY_COVERED,
ICounter.FULLY_COVEREDpublic ICounter getInstructionCounter()
ILinegetInstructionCounter in interface ILinepublic ICounter getBranchCounter()
ILinegetBranchCounter in interface ILineCopyright © 2024. All rights reserved.