File Coverage

blib/lib/SMIL/Code.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 2 0.0
total 9 11 81.8


line stmt bran cond sub pod time code
1             package SMIL::Code;
2              
3             $VERSION = "0.898";
4              
5             sub getAsString {
6 2     2 0 3 my $self = shift;
7 2         8 return $self->{code};
8             }
9              
10             sub new {
11 2     2 0 3 my $type = shift;
12 2         5 my $self = {};
13 2         6 bless $self, $type;
14              
15 2         10 $self->{code} = shift;
16 2         6 return $self;
17             }
18              
19