Percentage JustMyCode Coverage

Trend Metric Trend Metrics / Coverage

CQLinq source

This trend metric is written in CQLinq, C# LINQ over the NDepend code model. It ships with every new NDepend project: you can read it, adapt it, or use it as a starting point for your own custom rules.

// <TrendMetric Name="Percentage JustMyCode Coverage" Unit="%" />
let justMyCodeLinesCovered = (float)JustMyCode.Methods.Sum(m => m.NbLinesOfCodeCovered)
let justMyCodeLines = (float)JustMyCode.Methods.Sum(m => m.NbLinesOfCode)
select 100f* justMyCodeLinesCovered  / justMyCodeLines

// JustMyCode explanations: https://www.ndepend.com/docs/cqlinq-syntax#NotMyCode

Trend Metrics / Coverage: all 12 items