aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2024-10-09 11:08:22 +0200
committersonartech <sonartech@sonarsource.com>2024-10-09 20:02:47 +0000
commit86e133c37ac5e3aa5d02b9cf23494be27b7ed3dd (patch)
tree604fc73135fb2d991f52b0997f95af2072c2d583
parentedabd8b0238186fcb10255865e29f8311c2e4972 (diff)
downloadsonarqube-86e133c37ac5e3aa5d02b9cf23494be27b7ed3dd.tar.gz
sonarqube-86e133c37ac5e3aa5d02b9cf23494be27b7ed3dd.zip
SONAR-22872 Correctly populate ncloc_language_distribution
-rw-r--r--server/sonar-db-dao/src/testFixtures/java/org/sonar/db/measure/MeasureDbTester.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/measure/MeasureDbTester.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/measure/MeasureDbTester.java
index 2e4dc73955e..bbece52818e 100644
--- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/measure/MeasureDbTester.java
+++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/measure/MeasureDbTester.java
@@ -155,6 +155,7 @@ public class MeasureDbTester {
put(CoreMetrics.RELIABILITY_ISSUES_KEY, (metric, m) -> m.setData("{\"LOW\":0,\"MEDIUM\":1,\"HIGH\":0,\"total\":1}"));
put(CoreMetrics.MAINTAINABILITY_ISSUES_KEY, (metric, m) -> m.setData("{\"LOW\":0,\"MEDIUM\":1,\"HIGH\":0,\"total\":1}"));
put(CoreMetrics.SECURITY_ISSUES_KEY, (metric, m) -> m.setData("{\"LOW\":0,\"MEDIUM\":1,\"HIGH\":0,\"total\":1}"));
+ put(CoreMetrics.NCLOC_LANGUAGE_DISTRIBUTION_KEY, (metric, m) -> m.setData("java=123;xml=10"));
}
};