Class SectionCoverage
java.lang.Object
com.oracle.truffle.tools.coverage.SectionCoverage
Coverage data of a particular
SourceSection.- Since:
- 19.3.0
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()This value is only available if thetracker configspecified to count executions.com.oracle.truffle.api.source.SourceSectionboolean
-
Method Details
-
getSourceSection
public com.oracle.truffle.api.source.SourceSection getSourceSection()- Returns:
- The source section this coverage relates to.
- Since:
- 19.3.0
-
isCovered
public boolean isCovered()- Returns:
- Was this root covered (i.e. executed) during the tracking execution.
- Since:
- 19.3.0
-
getCount
public long getCount()This value is only available if thetracker configspecified to count executions.- Returns:
- How many times was the corresponding
SourceSectionexecuted. -1 if counting was disabled. - Since:
- 19.3.0
-