File Coverage

blib/lib/VS/RuleEngine/Action.pm
Criterion Covered Total %
statement 9 17 52.9
branch 0 4 0.0
condition 0 6 0.0
subroutine 3 5 60.0
pod 2 2 100.0
total 14 34 41.1


line stmt bran cond sub pod time code
1             package VS::RuleEngine::Action;
2              
3 19     19   32897 use strict;
  19         37  
  19         725  
4 19     19   103 use warnings;
  19         39  
  19         500  
5              
6 19     19   96 use Carp qw(croak);
  19         41  
  19         4561  
7              
8             sub new {
9 0     0 1   my $self = shift;
10 0   0       $self = ref $self || $self;
11 0 0         croak "new() should not be called as a function" if !$self;
12 0           croak "Class '$self' does not override new()";
13             }
14              
15             sub perform {
16 0     0 1   my $self = shift;
17 0   0       $self = ref $self || $self;
18 0 0         croak "perform() should not be called as a function" if !$self;
19 0           croak "Class '$self' does not override perform()";
20             }
21              
22             1;
23             __END__