Coverage Report - net.sourceforge.cobertura.check.CoverageRate
 
Classes in this File Line Coverage Branch Coverage Complexity
CoverageRate
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Cobertura - http://cobertura.sourceforge.net/
 3  
  *
 4  
  * Copyright (C) 2003 jcoverage ltd.
 5  
  * Copyright (C) 2005 Mark Doliner
 6  
  *
 7  
  * Cobertura is free software; you can redistribute it and/or modify
 8  
  * it under the terms of the GNU General Public License as published
 9  
  * by the Free Software Foundation; either version 2 of the License,
 10  
  * or (at your option) any later version.
 11  
  *
 12  
  * Cobertura is distributed in the hope that it will be useful, but
 13  
  * WITHOUT ANY WARRANTY; without even the implied warranty of
 14  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 15  
  * General Public License for more details.
 16  
  *
 17  
  * You should have received a copy of the GNU General Public License
 18  
  * along with Cobertura; if not, write to the Free Software
 19  
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 20  
  * USA
 21  
  */
 22  
 
 23  
 package net.sourceforge.cobertura.check;
 24  
 
 25  
 public class CoverageRate
 26  
 {
 27  
 
 28  
         private final double lineCoverageRate;
 29  
         private final double branchCoverageRate;
 30  
 
 31  
         public CoverageRate(double lineCoverageRate, double branchCoverageRate)
 32  0
         {
 33  0
                 this.lineCoverageRate = lineCoverageRate;
 34  0
                 this.branchCoverageRate = branchCoverageRate;
 35  0
         }
 36  
 
 37  
         public double getLineCoverageRate()
 38  
         {
 39  0
                 return lineCoverageRate;
 40  
         }
 41  
 
 42  
         public double getBranchCoverageRate()
 43  
         {
 44  0
                 return branchCoverageRate;
 45  
         }
 46  
 }