net.sourceforge.cobertura.check

Class Main


public class Main
extends java.lang.Object

Field Summary

private static Logger
logger
(package private) CoverageRate
minimumCoverageRate
The default CoverageRate needed for a class to pass the check.
(package private) Map
minimumCoverageRates
The keys of this map contain regular expression Patterns that match against classes.
(package private) Perl5Compiler
pc
(package private) Perl5Matcher
pm

Constructor Summary

Main(String[] args)

Method Summary

(package private) CoverageRate
findMinimumCoverageRate(String classname)
This method returns the CoverageRate object that applies to the given class.
(package private) double
inRangeAndDivideByOneHundred(String coverageRateAsPercentage)
(package private) double
inRangeAndDivideByOneHundred(int coverageRateAsPercentage)
static void
main(String[] args)
private String
percentage(double coverateRate)
(package private) void
setMinimumCoverageRate(String minimumCoverageRate)

Field Details

logger

private static final Logger logger


minimumCoverageRate

(package private)  CoverageRate minimumCoverageRate
The default CoverageRate needed for a class to pass the check.


minimumCoverageRates

(package private)  Map minimumCoverageRates
The keys of this map contain regular expression Patterns that match against classes. The values of this map contain CoverageRate objects that specify the minimum coverage rates needed for a class that matches the pattern.


pc

(package private) final Perl5Compiler pc


pm

(package private) final Perl5Matcher pm

Constructor Details

Main

public Main(String[] args)
            throws MalformedPatternException

Method Details

findMinimumCoverageRate

(package private)  CoverageRate findMinimumCoverageRate(String classname)
This method returns the CoverageRate object that applies to the given class. If checks if there is a pattern that matches the class name, and returns that if it finds one. Otherwise it uses the global minimum rates that were passed in.


inRangeAndDivideByOneHundred

(package private)  double inRangeAndDivideByOneHundred(String coverageRateAsPercentage)


inRangeAndDivideByOneHundred

(package private)  double inRangeAndDivideByOneHundred(int coverageRateAsPercentage)


main

public static void main(String[] args)
            throws MalformedPatternException


percentage

private String percentage(double coverateRate)


setMinimumCoverageRate

(package private)  void setMinimumCoverageRate(String minimumCoverageRate)
            throws MalformedPatternException