File Coverage

blib/lib/TV/Anytime/Event.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 16 81.2


line stmt bran cond sub pod time code
1             package TV::Anytime::Event;
2 1     1   7 use strict;
  1         3  
  1         40  
3 1     1   7 use warnings;
  1         3  
  1         30  
4 1     1   5 use base 'Class::Accessor::Chained::Fast';
  1         3  
  1         938  
5             __PACKAGE__->mk_accessors(qw(
6             start stop crid program
7             ));
8              
9             sub duration {
10 0     0 1   my $self = shift;
11 0           return $self->stop - $self->start;
12             }
13              
14             1;
15              
16             __END__