line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Session::State::Test; |
2
|
10
|
|
|
10
|
|
60302
|
use strict; |
|
10
|
|
|
|
|
28
|
|
|
10
|
|
|
|
|
255
|
|
3
|
10
|
|
|
10
|
|
3424
|
use HTTP::Session::State::Base; |
|
10
|
|
|
|
|
23
|
|
|
10
|
|
|
|
|
54
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors(qw/session_id/); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { |
8
|
20
|
|
|
20
|
1
|
1402
|
my $class = shift; |
9
|
20
|
50
|
|
|
|
93
|
my %args = ref($_[0]) ? %{$_[0]} : @_; |
|
0
|
|
|
|
|
0
|
|
10
|
|
|
|
|
|
|
# check required parameters |
11
|
20
|
|
|
|
|
50
|
for (qw/session_id/) { |
12
|
20
|
50
|
|
|
|
60
|
Carp::croak "missing parameter $_" unless $args{$_}; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
# set default values |
15
|
20
|
|
|
|
|
144
|
bless {%args}, $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get_session_id { |
19
|
20
|
|
|
20
|
1
|
469
|
my $self = shift; |
20
|
20
|
|
|
|
|
298
|
return $self->session_id; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
1
|
1
|
|
sub response_filter { } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |