Servlet/Util/Event.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 26 / 26 CC 2 SCAR 2.9
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Servlet/Util/Exception.pm ↑ Summary Servlet/Http/HttpSessionBindingEvent.pm »
1 # -*- Mode: Perl; indent-tabs-mode: nil; -*-
2  
3 package Servlet::Util::Event;
4  
5 2 ▶use fields qw(source);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
10 5 my $self = shift;
11 5 my $source = shift;
12  
13 5 ▶ $self = fields::new($self) unless ref $self;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $self 3 2 5
14  
15 5 $self->{source} = $source;
16  
17 5 return $self;
18 }
19  
20 9 ▶sub getSource {
Subroutine getSource: called CC=1 SCAR=0.0
Pod documented
21 9 my $self = shift;
22  
23 9 return $self->{source};
24 }
25  
26 2 1;
27 __END__
« Servlet/Util/Exception.pm ↑ Summary Servlet/Http/HttpSessionBindingEvent.pm »