File Coverage

blib/lib/XML/Elemental/Characters.pm
Criterion Covered Total %
statement 10 10 100.0
branch 2 4 50.0
condition n/a
subroutine 4 4 100.0
pod 2 2 100.0
total 18 20 90.0


line stmt bran cond sub pod time code
1             package XML::Elemental::Characters;
2 3     3   2155 use strict;
  3         7  
  3         173  
3 3     3   18 use base qw( XML::Elemental::Node );
  3         6  
  3         593  
4              
5             sub data {
6 6 50   6 1 527 $_[0]->{data} = $_[1] if @_ > 1;
7 6         29 return $_[0]->{data};
8             }
9              
10             sub parent {
11 4 50   4 1 2176 $_[0]->{parent} = $_[1] if @_ > 1;
12 4         27 return $_[0]->{parent};
13             }
14              
15             1;
16              
17             __END__