Package org.jruby.ext.coverage
Class CoverageData
java.lang.Object
org.jruby.ext.coverage.CoverageData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Update coverage data for the given file and line number.int
int
getMode()
boolean
Has coverage been setup?boolean
boolean
boolean
Is coverage actively collecting info?prepareCoverage
(String filename, int[] startingLines) void
void
setCoverage
(int mode, int currentMode, CoverageData.CoverageDataState state) void
void
-
Field Details
-
NONE
public static final int NONE- See Also:
-
LINES
public static final int LINES- See Also:
-
BRANCHES
public static final int BRANCHES- See Also:
-
METHODS
public static final int METHODS- See Also:
-
ONESHOT_LINES
public static final int ONESHOT_LINES- See Also:
-
EVAL
public static final int EVAL- See Also:
-
ALL
public static final int ALL- See Also:
-
-
Constructor Details
-
CoverageData
public CoverageData()
-
-
Method Details
-
isCoverageEnabled
public boolean isCoverageEnabled()Has coverage been setup? -
isEvalCovered
public boolean isEvalCovered() -
isRunning
public boolean isRunning()Is coverage actively collecting info? -
getMode
public int getMode() -
isOneshot
public boolean isOneshot() -
getCoverage
-
coverLine
Update coverage data for the given file and line number.- Parameters:
filename
-line
-
-
clearCoverage
public void clearCoverage() -
resumeCoverage
public void resumeCoverage() -
suspendCoverage
public void suspendCoverage() -
setCoverage
-
resetCoverage
-
prepareCoverage
-
getCurrentState
-
setCurrentState
-
getCurrentMode
public int getCurrentMode()
-