-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for mutations before running coverage
- Loading branch information
Henry Coles
committed
Apr 19, 2021
1 parent
5962ff1
commit 09aced8
Showing
6 changed files
with
177 additions
and
54 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
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,57 @@ | ||
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; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
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); | ||
} | ||
|
||
@Override | ||
public Map<InstructionLocation, Set<TestInfo>> getInstructionCoverage() { | ||
return Collections.emptyMap(); | ||
} | ||
} |
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
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.