File Coverage

blib/lib/HTTP/Session/State/Test.pm
Criterion Covered Total %
statement 13 14 92.8
branch 2 4 50.0
condition n/a
subroutine 5 5 100.0
pod 3 3 100.0
total 23 26 88.4


line stmt bran cond sub pod time code
1             package HTTP::Session::State::Test;
2 10     10   131426 use strict;
  10         22  
  10         446  
3 10     10   4854 use HTTP::Session::State::Base;
  10         35  
  10         99  
4              
5             __PACKAGE__->mk_ro_accessors(qw/session_id/);
6              
7             sub new {
8 21     21 1 2201329 my $class = shift;
9 21 50       118 my %args = ref($_[0]) ? %{$_[0]} : @_;
  0         0  
10             # check required parameters
11 21         58 for (qw/session_id/) {
12 21 50       88 Carp::croak "missing parameter $_" unless $args{$_};
13             }
14             # set default values
15 21         219 bless {%args}, $class;
16             }
17              
18             sub get_session_id {
19 21     21 1 718 my $self = shift;
20 21         504 return $self->session_id;
21             }
22       1 1   sub response_filter { }
23              
24             1;
25             __END__