Clover coverage report - Drools - 2.0-rc2
Coverage timestamp: Wed May 11 2005 07:12:26 BST
file stats: LOC: 110   Methods: 17
NCLOC: 84   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MockTuple.java - 41.2% 41.2% 41.2%
coverage coverage
 1    package org.drools.spi;
 2   
 3    import java.util.HashMap;
 4    import java.util.Map;
 5    import java.util.Set;
 6   
 7    import org.drools.FactHandle;
 8    import org.drools.WorkingMemory;
 9    import org.drools.rule.Declaration;
 10    import org.drools.rule.Rule;
 11   
 12    public class MockTuple implements Tuple
 13    {
 14    private Rule rule;
 15   
 16    private WorkingMemory workingMemory;
 17   
 18    private Map tuple;
 19   
 20    private long mostRecentTimeStamp;
 21   
 22    private long leastRecentTimeStamp;
 23   
 24    private long[] conditionTimeStamps;
 25   
 26  21 public MockTuple()
 27    {
 28  21 this.tuple = new HashMap( );
 29    }
 30   
 31  75 public Object get(Declaration declaration)
 32    {
 33  75 return this.tuple.get( declaration );
 34    }
 35   
 36  24 public void put(Declaration declaration, Object value)
 37    {
 38  24 this.tuple.put( declaration, value );
 39    }
 40   
 41  0 public Set getDeclarations()
 42    {
 43  0 return this.tuple.keySet( );
 44    }
 45   
 46  6 public FactHandle getFactHandleForObject(Object object)
 47    {
 48  6 return null;
 49    }
 50   
 51  27 public void setRule(Rule rule)
 52    {
 53  27 this.rule = rule;
 54    }
 55   
 56  0 public Rule getRule()
 57    {
 58  0 return this.rule;
 59    }
 60   
 61  27 public void setWorkingMemory(WorkingMemory workingMemory)
 62    {
 63  27 this.workingMemory = workingMemory;
 64    }
 65   
 66  97 public WorkingMemory getWorkingMemory()
 67    {
 68  97 return this.workingMemory;
 69    }
 70   
 71  0 public void setMostRecentFactTimeStamp(long timeStamp)
 72    {
 73  0 this.mostRecentTimeStamp = timeStamp;
 74    }
 75   
 76  0 public void setLeastRecentFactTimeStamp(long timeStamp)
 77    {
 78  0 this.leastRecentTimeStamp = timeStamp;
 79    }
 80   
 81  0 public void setConditionTimeStamps(long[] timeStamps)
 82    {
 83  0 this.conditionTimeStamps = timeStamps;
 84    }
 85   
 86  0 public long getMostRecentFactTimeStamp()
 87    {
 88  0 return this.mostRecentTimeStamp;
 89    }
 90   
 91  0 public long getLeastRecentFactTimeStamp()
 92    {
 93  0 return this.leastRecentTimeStamp;
 94    }
 95   
 96  0 public void setConditionTimeStamp(int order, long timeStamp)
 97    {
 98  0 this.conditionTimeStamps[order] = timeStamp;
 99    }
 100   
 101  0 public long getConditionTimeStamp(int order)
 102    {
 103  0 return this.conditionTimeStamps[order];
 104    }
 105   
 106  0 public long[] getConditionTimeStamps()
 107    {
 108  0 return this.conditionTimeStamps;
 109    }
 110    }