Clover coverage report - groovy - 1.0-beta-7
Coverage timestamp: Wed Sep 29 2004 16:55:52 BST
file stats: LOC: 25   Methods: 1
NCLOC: 14   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.IOException;
 4   
 
 5   
 /**
 6   
  * Factory to build a command line prompt.  Should build the most featureful
 7   
  * prompt available.
 8   
  * 
 9   
  * Currently readline prompt will be looked up dynamically, and defaults to 
 10   
  * normal System.in prompt.
 11   
  */
 12   
 public class PromptFactory {
 13  0
   public static Prompt buildPrompt() throws IOException {
 14  0
     try {
 15  0
       return (Prompt) Class.forName("org.codehaus.groovy.sandbox.ui.ReadlinePrompt").newInstance();
 16   
     } catch (ClassNotFoundException e) {
 17   
       // nothing
 18  0
       return new JavaPrompt();
 19   
     } catch (Exception e) {
 20  0
       e.printStackTrace();
 21  0
       return new JavaPrompt();
 22   
     }
 23   
   }
 24   
 }
 25