Fix sum of rows

This commit is contained in:
Benjamin Muskalla
2021-11-23 10:42:24 +01:00
parent cd39d15b40
commit 50518b5622

View File

@@ -11,8 +11,7 @@ import semmle.code.java.dataflow.ExternalFlow
from string packageAndType, int rows
where
exists(string package, string type |
modelCoverage(package, _, _, type, _) and
packageAndType = package + ";" + type and
rows = sum(int n | modelCoverage(package, _, _, type, n) | n)
rows = strictsum(int n, string kind | modelCoverage(package, _, kind, type, n) | n)
)
select packageAndType, rows