| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package VS::RuleEngine::Hook; |
|
2
|
|
|
|
|
|
|
|
|
3
|
22
|
|
|
22
|
|
27846
|
use strict; |
|
|
22
|
|
|
|
|
43
|
|
|
|
22
|
|
|
|
|
687
|
|
|
4
|
22
|
|
|
22
|
|
113
|
use warnings; |
|
|
22
|
|
|
|
|
41
|
|
|
|
22
|
|
|
|
|
611
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
22
|
|
|
22
|
|
148
|
use Carp qw(croak); |
|
|
22
|
|
|
|
|
52
|
|
|
|
22
|
|
|
|
|
3822
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
|
9
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
|
10
|
0
|
|
0
|
|
|
0
|
$self = ref $self || $self; |
|
11
|
0
|
0
|
|
|
|
0
|
croak "new() should not be called as a function" if !$self; |
|
12
|
0
|
|
|
|
|
0
|
croak "Class '$self' does not override new()"; |
|
13
|
|
|
|
|
|
|
} |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub invoke { |
|
16
|
3
|
|
|
3
|
1
|
1110
|
my $self = shift; |
|
17
|
3
|
|
100
|
|
|
13
|
$self = ref $self || $self; |
|
18
|
3
|
100
|
|
|
|
113
|
croak "invoke() should not be called as a function" if !$self; |
|
19
|
2
|
|
|
|
|
480
|
croak "Class '$self' does not override invoke()"; |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
__END__ |