aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api-impl
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-06-20 14:54:01 -0500
committersonartech <sonartech@sonarsource.com>2022-06-21 20:02:45 +0000
commit4c674a26a6c422348f7a3f3fbfb8712abf001bbd (patch)
treeac554d55c710c2fbbe154a3f93a87da1f7ae86ac /sonar-plugin-api-impl
parent2cb3e53879262017a32c3e394ac30669e573c42c (diff)
downloadsonarqube-4c674a26a6c422348f7a3f3fbfb8712abf001bbd.tar.gz
sonarqube-4c674a26a6c422348f7a3f3fbfb8712abf001bbd.zip
SONAR-16521 'Line Coverage' inconsistent with 'Lines to cover' and 'uncovered lines'
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r--sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java
index a921290c057..730be0ea588 100644
--- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java
+++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java
@@ -134,7 +134,7 @@ public class DefaultCoverage extends DefaultStorable implements NewCoverage {
@Override
public void doSave() {
validateFile();
- if (!isExcluded()) {
+ if (!isExcluded() && inputFile.type() != InputFile.Type.TEST) {
storage.store(this);
}
}