File Coverage

blib/lib/Test/C2FIT/PrimitiveFixture.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 21 61.9


line stmt bran cond sub pod time code
1             # $Id: PrimitiveFixture.pm,v 1.6 2006/06/16 15:20:56 tonyb Exp $
2             #
3             # Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
4             # Released under the terms of the GNU General Public License version 2 or later.
5             #
6             # Perl translation by Dave W. Smith
7             # Modified by Tony Byrne
8              
9             package Test::C2FIT::PrimitiveFixture;
10              
11 1     1   2080 use base 'Test::C2FIT::Fixture';
  1         2  
  1         107  
12 1     1   6 use strict;
  1         2  
  1         41  
13 1     1   670 use Test::C2FIT::TypeAdapter;
  1         3  
  1         96  
14              
15             sub checkValue {
16 0     0 1   my $self = shift;
17 0           my ( $cell, $value ) = @_;
18              
19 0 0         if ( Test::C2FIT::TypeAdapter->equals( $cell->text(), $value ) ) {
20 0           $self->right($cell);
21             }
22             else {
23 0           $self->wrong( $cell, $value );
24             }
25             }
26              
27             1;
28              
29             __END__