public class CoverageData extends BaseTCILookupStore implements ApplicationCoverage, PerTestCoverage
| Modifier and Type | Field and Description |
|---|---|
static StorageSize |
DEFAULT_EST_PER_TEST_COV_SIZE |
static int |
DEFAULT_EST_PER_TEST_RECORDINGS |
| Constructor and Description |
|---|
CoverageData(Clover2Registry registry) |
CoverageData(Clover2Registry registry,
CoverageDataSpec spec) |
CoverageData(long timestamp,
int[] hitCounts,
PerTestCoverage perTestCoverage) |
getTciLookups, namedTCILookupForpublic static final StorageSize DEFAULT_EST_PER_TEST_COV_SIZE
public static final int DEFAULT_EST_PER_TEST_RECORDINGS
public CoverageData(Clover2Registry registry)
public CoverageData(Clover2Registry registry, CoverageDataSpec spec)
public CoverageData(long timestamp,
int[] hitCounts,
PerTestCoverage perTestCoverage)
public long getTimestamp()
public void setTimestamp(long timestamp)
public boolean isEmpty()
public void resolve(Clover2Registry registry)
registry - the registry to resolve againstpublic int[] getHitCounts()
public int getHitCount(int index)
getHitCount in interface CoverageDataProviderpublic int getCoverageSize()
getCoverageSize in interface ApplicationCoveragegetCoverageSize in interface PerTestCoveragepublic BitSet getPassOnlyAndIncidentalHits()
public TestCaseInfo getTestById(int testId)
getTestById in interface PerTestCoveragepublic BitSet getPassOnlyHits()
getPassOnlyHits in interface PerTestCoveragepublic BitSet getHitsFor(TestCaseInfo tci)
getHitsFor in interface PerTestCoveragepublic BitSet getHitsFor(Set<TestCaseInfo> tcis)
getHitsFor in interface PerTestCoveragepublic BitSet getHitsFor(Set<TestCaseInfo> tcis, CoverageDataRange range)
getHitsFor in interface PerTestCoveragepublic BitSet getUniqueHitsFor(TestCaseInfo tci)
getUniqueHitsFor in interface PerTestCoveragepublic BitSet getUniqueHitsFor(Set<TestCaseInfo> tcis)
getUniqueHitsFor in interface PerTestCoveragepublic boolean hasPerTestData()
hasPerTestData in interface PerTestCoveragepublic Set<TestCaseInfo> getTests()
getTests in interface PerTestCoveragepublic Set<TestCaseInfo> getTestsCovering(CoverageDataRange range)
getTestsCovering in interface PerTestCoveragepublic Map<TestCaseInfo,BitSet> mapTestsAndCoverageForFile(FullFileInfo fileInfo)
mapTestsAndCoverageForFile in interface PerTestCoveragepublic BitSet getAllHits()
getAllHits in interface PerTestCoveragepublic void addCoverage(TestCaseInfo tci, PerTestRecordingTranscript recording)
addCoverage in interface PerTestCoveragepublic void addCoverage(GlobalCoverageRecordingTranscript recording)
addCoverage in interface ApplicationCoveragepublic static Set<TestCaseInfo> tcisInHitRange(Map<TestCaseInfo,BitSet> tcisAndHits, CoverageDataRange range)
public void avoidObviousOverflow()
public PerTestCoverage getPerTestCoverage()
Copyright © 2024 OpenClover.org. All rights reserved.