-");
-
- foreach (var method in methods.OrderBy(u => u.Method.Name).OrderByDescending(u => u.CoveredLinesPercentage))
- {
- var kind = "low";
- if (method.CoveredLinesPercentage > 0.7) kind = "medium";
- if (method.CoveredLinesPercentage > 0.8) kind = "high";
-
- sourceCode.WriteLine($@"
-
-
{method.Method}
-
{method.CoveredBranchPercentage:P2}
-
{method.CoveredLinesPercentage:P2}
-
-
-");
- sourceCode.WriteLine($@"
");
-
- foreach (var hit in method.Lines)
- {
- var noHit = hit.Hits == 0 ? "no-" : "";
- var icon = hit.Hits == 0 ? "✘" : "✔";
- var branch = "";
-
- if (_branches.TryGetValue(hit.Offset, out var b))
- {
- branch = $"
[ᛦ {b.Hits}/{b.Count}]";
- }
-
- sourceCode.WriteLine($@"
{icon}{hit.Hits} Hits{hit.Description}{branch}
");
- }
-
- sourceCode.WriteLine($@"
-");
- }
-
- sourceCode.WriteLine(@"
-
-
+ }
-
-
-");
- break;
- }
+ ///