Clover coverage report - DynamicJava Test Coverage (dynamicjava-20110903-r5436)
Coverage timestamp: Sat Sep 3 2011 03:02:20 CDT
file stats: LOC: 55   Methods: 37
NCLOC: 46   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BaseContext.java - 19.4% 21.6% 20.5%
coverage coverage
 1    package edu.rice.cs.dynamicjava.interpreter;
 2   
 3    import edu.rice.cs.dynamicjava.symbol.*;
 4    import edu.rice.cs.dynamicjava.symbol.type.*;
 5    import edu.rice.cs.plt.iter.IterUtil;
 6   
 7    /**
 8    * A non-delegating context to place and the top of a delegation chain. All methods return null, false,
 9    * or an empty list, or (where none of these are valid) throw an UnsupportedOperationException.
 10    */
 11    public class BaseContext implements TypeContext {
 12   
 13    public static final BaseContext INSTANCE = new BaseContext();
 14   
 15  1 private BaseContext() {}
 16   
 17  54 public boolean fieldExists(String name, TypeSystem ts) { return false; }
 18  0 public boolean functionExists(String name, TypeSystem ts) { return false; }
 19  0 public ClassLoader getClassLoader() { throw new UnsupportedOperationException(); }
 20  0 public Iterable<Type> getDeclaredThrownTypes() { return IterUtil.empty(); }
 21  0 public Iterable<LocalFunction> getLocalFunctions(String name, TypeSystem ts) { return IterUtil.empty(); }
 22  0 public Iterable<LocalFunction> getLocalFunctions(String name, TypeSystem ts, Iterable<LocalFunction> partial) {
 23  0 return partial;
 24    }
 25  0 public LocalVariable getLocalVariable(String name, TypeSystem ts) { return null; }
 26  0 public Access.Module accessModule() { return new TopLevelAccessModule(""); }
 27  0 public Type getReturnType() { return null; }
 28  0 public DJClass getThis() { return null; }
 29  0 public DJClass getThis(String className) { return null; }
 30  0 public DJClass getThis(Type expected, TypeSystem ts) { return null; }
 31  1853 public DJClass getTopLevelClass(String name, TypeSystem ts) throws AmbiguousNameException { return null; }
 32  468 public VariableType getTypeVariable(String name, TypeSystem ts) { return null; }
 33  0 public TypeContext importField(DJClass c, String name) { throw new UnsupportedOperationException(); }
 34  0 public TypeContext importMemberClass(DJClass outer, String name) { throw new UnsupportedOperationException(); }
 35  0 public TypeContext importMemberClasses(DJClass outer) { throw new UnsupportedOperationException(); }
 36  0 public TypeContext importMethod(DJClass c, String name) { throw new UnsupportedOperationException(); }
 37  0 public TypeContext importStaticMembers(DJClass c) { throw new UnsupportedOperationException(); }
 38  0 public TypeContext importTopLevelClass(DJClass c) { throw new UnsupportedOperationException(); }
 39  0 public TypeContext importTopLevelClasses(String pkg) { throw new UnsupportedOperationException(); }
 40  0 public DJClass initializingClass() { return null; }
 41  0 public boolean localFunctionExists(String name, TypeSystem ts) { return false; }
 42  54 public boolean localVariableExists(String name, TypeSystem ts) { return false; }
 43  0 public String makeAnonymousClassName() { throw new UnsupportedOperationException(); }
 44  0 public String makeClassName(String n) { throw new UnsupportedOperationException(); }
 45  0 public boolean memberClassExists(String name, TypeSystem ts) { return false; }
 46  0 public boolean methodExists(String name, TypeSystem ts) { return false; }
 47  0 public TypeContext setPackage(String name) { throw new UnsupportedOperationException(); }
 48  583 public boolean topLevelClassExists(String name, TypeSystem ts) { return false; }
 49  108 public ClassType typeContainingField(String name, TypeSystem ts) throws AmbiguousNameException { return null; }
 50  1422 public ClassType typeContainingMemberClass(String name, TypeSystem ts) throws AmbiguousNameException { return null; }
 51  0 public Type typeContainingMethod(String name, TypeSystem ts) { return null; }
 52  0 public boolean typeExists(String name, TypeSystem ts) { return false; }
 53  0 public boolean typeVariableExists(String name, TypeSystem ts) { return false; }
 54  0 public boolean variableExists(String name, TypeSystem ts) { return false; }
 55    }