public class MetricsCollator extends Object
Constructor and Description |
---|
MetricsCollator() |
Modifier and Type | Method and Description |
---|---|
List<MethodInfo> |
getLeastTestedMethods(List<? extends ClassInfo> classes,
boolean showLambdaFunctions,
boolean showInnerFunctions)
Given a list of
ClassInfo objects,
return a list of MethodInfo s, ranked
by PC COvered (asc), Num Elements Uncovered and Complexity. |
List |
getTopOfList(List infos,
int topNCount,
HasMetricsSupport.HasMetricsComparator cmp) |
List |
getTopRisks(Map<Integer,List<ClassInfo>> classMap,
int risksCount) |
Map<Integer,List<ClassInfo>> |
rankProjectRisks(List<? extends ClassInfo> pceOrder,
List amcOrder)
Sums the index of the class when ordered by %covered elements and that when ordered
by average method complexity.
|
public List<MethodInfo> getLeastTestedMethods(List<? extends ClassInfo> classes, boolean showLambdaFunctions, boolean showInnerFunctions)
ClassInfo
objects,
return a list of MethodInfo
s, ranked
by PC COvered (asc), Num Elements Uncovered and Complexity.public Map<Integer,List<ClassInfo>> rankProjectRisks(List<? extends ClassInfo> pceOrder, List amcOrder)
pceOrder
- a list of ClassInfos ordered by percentage of elements coveredamcOrder
- a list of ClassInfos ordered by average method complexitypublic List getTopOfList(List infos, int topNCount, HasMetricsSupport.HasMetricsComparator cmp)
Copyright © 2023 OpenClover.org. All rights reserved.