line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::Component::SmokeBox::Backend::Base; |
2
|
|
|
|
|
|
|
$POE::Component::SmokeBox::Backend::Base::VERSION = '0.56'; |
3
|
|
|
|
|
|
|
#ABSTRACT: Base class for Backend smokers. |
4
|
|
|
|
|
|
|
|
5
|
43
|
|
|
43
|
|
1129
|
use strict; |
|
43
|
|
|
|
|
111
|
|
|
43
|
|
|
|
|
1262
|
|
6
|
43
|
|
|
43
|
|
256
|
use warnings; |
|
43
|
|
|
|
|
103
|
|
|
43
|
|
|
|
|
12187
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
111
|
|
|
111
|
1
|
2911
|
my $package = shift; |
10
|
111
|
|
|
|
|
329
|
my %opts = @_; |
11
|
111
|
|
|
|
|
514
|
$opts{lc $_} = delete $opts{$_} for keys %opts; |
12
|
111
|
|
|
|
|
380
|
my $self = bless \%opts, $package; |
13
|
111
|
|
|
|
|
582
|
$self->_data(); |
14
|
111
|
|
|
|
|
483
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _data { |
18
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
19
|
|
|
|
|
|
|
$self->{_data} = |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
|
|
|
|
0
|
check => [ 'DUMMY' ], |
22
|
|
|
|
|
|
|
index => [ 'DUMMY' ], |
23
|
|
|
|
|
|
|
smoke => [ 'DUMMY' ], |
24
|
|
|
|
|
|
|
digest => [ 'DUMMY' ], |
25
|
|
|
|
|
|
|
}; |
26
|
0
|
|
|
|
|
0
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub check { |
30
|
69
|
|
|
69
|
1
|
1679
|
my $self = shift; |
31
|
69
|
50
|
|
|
|
337
|
return $self->{_data}->{'check'} if $self->{_data}->{'check'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub index { |
35
|
9
|
|
|
9
|
1
|
28
|
my $self = shift; |
36
|
9
|
50
|
|
|
|
42
|
return $self->{_data}->{'index'} if $self->{_data}->{'index'}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub smoke { |
40
|
41
|
|
|
41
|
1
|
1871
|
my $self = shift; |
41
|
41
|
50
|
|
|
|
263
|
return $self->{_data}->{'smoke'} if $self->{_data}->{'smoke'}; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub digest { |
45
|
107
|
|
|
107
|
1
|
284
|
my $self = shift; |
46
|
107
|
100
|
|
|
|
633
|
return $self->{_data}->{'digest'} if $self->{_data}->{'digest'}; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |