-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from hcoles/pre_coverage_check
check for mutations before running coverage
- Loading branch information
Showing
8 changed files
with
173 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
pitest-entry/src/main/java/org/pitest/coverage/NoCoverage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package org.pitest.coverage; | ||
|
||
import org.pitest.classinfo.ClassInfo; | ||
import org.pitest.classinfo.ClassName; | ||
|
||
import java.math.BigInteger; | ||
import java.util.Collection; | ||
import java.util.Collections; | ||
|
||
public class NoCoverage implements CoverageDatabase { | ||
@Override | ||
public Collection<ClassInfo> getClassInfo(Collection<ClassName> classes) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public int getNumberOfCoveredLines(Collection<ClassName> clazz) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public Collection<TestInfo> getTestsForClass(ClassName clazz) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public Collection<TestInfo> getTestsForInstructionLocation(InstructionLocation location) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public Collection<TestInfo> getTestsForClassLine(ClassLine classLine) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public BigInteger getCoverageIdForClass(ClassName clazz) { | ||
return BigInteger.ZERO; | ||
} | ||
|
||
@Override | ||
public Collection<ClassInfo> getClassesForFile(String sourceFile, String packageName) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public CoverageSummary createSummary() { | ||
return new CoverageSummary(0,0); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.