Clover coverage report - groovy - 1.0-beta-8
Coverage timestamp: Fri Dec 17 2004 14:55:55 GMT
file stats: LOC: 32   Methods: 1
NCLOC: 22   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
PromptFactory.java - 0% 0% 0%
coverage
 1   
 package org.codehaus.groovy.sandbox.ui;
 2   
 
 3   
 import java.io.InputStream;
 4   
 import java.io.PrintStream;
 5   
 
 6   
 /**
 7   
  * Factory to build a command line prompt.  Should build the most featureful
 8   
  * prompt available.
 9   
  * <p/>
 10   
  * Currently readline prompt will be looked up dynamically, and defaults to
 11   
  * normal System.in prompt.
 12   
  */
 13   
 public class PromptFactory
 14   
 {
 15  0
     public static Prompt buildPrompt(InputStream in, PrintStream out, PrintStream err)
 16   
     {
 17  0
         try
 18   
         {
 19  0
             return (Prompt) Class.forName("org.codehaus.groovy.sandbox.ui.ReadlinePrompt").newInstance();
 20   
         }
 21   
         catch (ClassNotFoundException e)
 22   
         {
 23  0
             return new JavaPrompt(in, out, err);
 24   
         }
 25   
         catch (Exception e)
 26   
         {
 27  0
             e.printStackTrace();
 28  0
             return new JavaPrompt(in, out, err);
 29   
         }
 30   
     }
 31   
 }
 32