File Coverage

blib/lib/Servlet/Util/Event.pm
Criterion Covered Total %
statement 16 16 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 25 25 100.0


line stmt bran cond sub pod time code
1             # -*- Mode: Perl; indent-tabs-mode: nil; -*-
2              
3             package Servlet::Util::Event;
4              
5 2     2   3928 use fields qw(source);
  2         6109  
  2         15  
6 2     2   121 use strict;
  2         3  
  2         53  
7 2     2   10 use warnings;
  2         3  
  2         226  
8              
9             sub new {
10 5     5 1 34 my $self = shift;
11 5         9 my $source = shift;
12              
13 5 100       26 $self = fields::new($self) unless ref $self;
14              
15 5         7734 $self->{source} = $source;
16              
17 5         22 return $self;
18             }
19              
20             sub getSource {
21 9     9 1 15 my $self = shift;
22              
23 9         37 return $self->{source};
24             }
25              
26             1;
27             __END__