Servlet/Http/HttpSessionBindingEvent.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 3 / 3 totaltotal 97.3% 37 / 38 CC 2 SCAR 2.2
CC
2
Cov
96%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Servlet/Util/Event.pm ↑ Summary Servlet/ServletContextAttributeEvent.pm »
1 # -*- Mode: Perl; indent-tabs-mode: nil; -*-
2  
3 package Servlet::Http::HttpSessionBindingEvent;
4  
5 1 ▶use base qw(Servlet::Http::HttpSessionEvent);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use fields qw(name value);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
11 1 my $self = shift;
12 1 my $session = shift;
13 1 my $name = shift;
14 1 my $value = shift;
15  
16 1 ▶ $self = fields::new($self) unless ref $self;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $self 1 0 1
17 1 $self->SUPER::new($session);
18  
19 1 $self->{name} = $name;
20 1 $self->{value} = $value;
21  
22 1 return $self;
23 }
24  
25 1 ▶sub getName {
Subroutine getName: called CC=1 SCAR=0.0
Pod documented
26 1 my $self = shift;
27  
28 1 return $self->{name};
29 }
30  
31 1 ▶sub getValue {
Subroutine getValue: called CC=1 SCAR=0.0
Pod documented
32 1 my $self = shift;
33  
34 1 return $self->{value};
35 }
36  
37 1 1;
38 __END__
« Servlet/Util/Event.pm ↑ Summary Servlet/ServletContextAttributeEvent.pm »