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