diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-06-20 14:54:01 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-21 20:02:45 +0000 |
commit | 4c674a26a6c422348f7a3f3fbfb8712abf001bbd (patch) | |
tree | ac554d55c710c2fbbe154a3f93a87da1f7ae86ac /sonar-plugin-api-impl | |
parent | 2cb3e53879262017a32c3e394ac30669e573c42c (diff) | |
download | sonarqube-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.java | 2 |
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); } } |