Clover coverage report - groovy - 1.0-beta-8
Coverage timestamp: Fri Dec 17 2004 14:55:55 GMT
file stats: LOC: 37   Methods: 2
NCLOC: 18   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
Utilities.java 0% 0% 0% 0%
coverage
 1   
 package org.codehaus.groovy.tools;
 2   
 
 3   
 /**
 4   
  *  Various utility functions for use in the compiler.
 5   
  */
 6   
 
 7   
 public abstract class Utilities
 8   
 {
 9   
    /**
 10   
     *  Returns a string made up of repetitions of the specified string.
 11   
     */
 12   
 
 13  0
     public static String repeatString( String pattern, int repeats )
 14   
     {
 15  0
         StringBuffer buffer = new StringBuffer( pattern.length() * repeats );
 16  0
         for( int i = 0; i < repeats; i++ )
 17   
         {
 18  0
             buffer.append( pattern );
 19   
         }
 20   
 
 21  0
         return new String( buffer );
 22   
     }
 23   
 
 24   
 
 25   
    /**
 26   
     *  Returns the end-of-line marker.
 27   
     */
 28   
 
 29  0
     public static String eol()
 30   
     {
 31  0
         return eol;
 32   
     }
 33   
     
 34   
     private static String eol = System.getProperty( "line.separator", "\n" ); 
 35   
 
 36   
 }
 37