Clover coverage report - Drools - 2.0-rc2
Coverage timestamp: Wed May 11 2005 07:12:26 BST
file stats: LOC: 32   Methods: 3
NCLOC: 23   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
TupleParameterValue.java 100% 100% 100% 100%
coverage
 1    package org.drools.semantics.annotation.model;
 2   
 3    import org.drools.rule.Declaration;
 4    import org.drools.spi.Tuple;
 5   
 6    class TupleParameterValue implements ParameterValue
 7    {
 8    private final Declaration declaration;
 9   
 10  26 public TupleParameterValue( final Declaration declaration )
 11    {
 12  26 if (declaration == null)
 13    {
 14  1 throw new IllegalArgumentException( "Null 'declaration' argument" );
 15    }
 16  25 this.declaration = declaration;
 17    }
 18   
 19    /**
 20    * @return The fact associated with the parameter declaration. The returned
 21    * value may be null.
 22    */
 23  7 public Object getValue( Tuple tuple )
 24    {
 25  7 return tuple.get( declaration );
 26    }
 27   
 28  16 public Declaration getDeclaration( )
 29    {
 30  16 return declaration;
 31    }
 32    }