From 4c674a26a6c422348f7a3f3fbfb8712abf001bbd Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 20 Jun 2022 14:54:01 -0500 Subject: SONAR-16521 'Line Coverage' inconsistent with 'Lines to cover' and 'uncovered lines' --- .../org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-plugin-api-impl') 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); } } -- cgit v1.2.3