Skip to content

Commit 98b2bc0

Browse files
committed
C#: Port the java FrameworkCoverage query.
1 parent db85679 commit 98b2bc0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @id csharp/summary/framework-coverage
3+
* @name Metrics of framework coverage
4+
* @description Expose metrics for the number of API endpoints covered by CSV models.
5+
* @kind metric
6+
* @tags summary
7+
*/
8+
9+
import csharp
10+
import semmle.code.csharp.dataflow.ExternalFlow
11+
12+
from string namespaceAndType, int rows
13+
where
14+
exists(string namespace, string type |
15+
namespaceAndType = namespace + ";" + type and
16+
rows = strictsum(int n, string kind | modelCoverage(namespace, _, kind, type, n) | n)
17+
)
18+
select namespaceAndType, rows

0 commit comments

Comments
 (0)