line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VS::RuleEngine::Rule; |
2
|
|
|
|
|
|
|
|
3
|
24
|
|
|
24
|
|
32981
|
use strict; |
|
24
|
|
|
|
|
47
|
|
|
24
|
|
|
|
|
766
|
|
4
|
24
|
|
|
24
|
|
132
|
use warnings; |
|
24
|
|
|
|
|
47
|
|
|
24
|
|
|
|
|
14282
|
|
5
|
|
|
|
|
|
|
|
6
|
24
|
|
|
24
|
|
131
|
use Carp qw(croak); |
|
24
|
|
|
|
|
51
|
|
|
24
|
|
|
|
|
4430
|
|
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
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub evaluate { |
17
|
3
|
|
|
3
|
1
|
1174
|
my $self = shift; |
18
|
3
|
|
100
|
|
|
15
|
$self = ref $self || $self; |
19
|
3
|
100
|
|
|
|
127
|
croak "evaluate() should not be called as a function" if !$self; |
20
|
2
|
|
|
|
|
425
|
croak "Class '$self' does not override evaluate()"; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |