public class MetricsFormatUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_METRICS_LABEL |
static String |
NO_METRICS_LABEL |
| Constructor and Description |
|---|
MetricsFormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format100PcCoverage() |
static String |
formatMetricsDecimal(double value) |
static String |
formatMetricsInteger(long value) |
static String |
formatMetricsPercent(double value) |
static float |
getAvgMethodComplexity(BlockMetrics metrics) |
static int |
getComplexity(BlockMetrics metrics) |
static float |
getComplexityDensity(BlockMetrics metrics) |
static long |
getLineCount(BlockMetrics metrics) |
static long |
getNcLineCount(BlockMetrics metrics) |
static long |
getNumBranches(BlockMetrics metrics) |
static long |
getNumClasses(BlockMetrics metrics) |
static long |
getNumFiles(BlockMetrics metrics) |
static long |
getNumMethods(BlockMetrics metrics) |
static long |
getNumPackages(BlockMetrics metrics) |
static long |
getNumStatements(BlockMetrics metrics) |
static String |
textForCoverage(ElementInfo info) |
public static final String NO_METRICS_LABEL
public static final String ERROR_METRICS_LABEL
public static String format100PcCoverage()
public static String formatMetricsDecimal(double value)
public static String formatMetricsPercent(double value)
public static String formatMetricsInteger(long value)
public static float getAvgMethodComplexity(BlockMetrics metrics)
public static int getComplexity(BlockMetrics metrics)
public static float getComplexityDensity(BlockMetrics metrics)
public static long getNumPackages(BlockMetrics metrics)
public static long getNumMethods(BlockMetrics metrics)
public static long getNumFiles(BlockMetrics metrics)
public static long getNcLineCount(BlockMetrics metrics)
public static long getNumClasses(BlockMetrics metrics)
public static long getLineCount(BlockMetrics metrics)
public static long getNumStatements(BlockMetrics metrics)
public static long getNumBranches(BlockMetrics metrics)
public static String textForCoverage(ElementInfo info)
Copyright © 2024 OpenClover.org. All rights reserved.