File Coverage

blib/lib/VS/RuleEngine/Input.pm
Criterion Covered Total %
statement 13 17 76.4
branch 2 4 50.0
condition 3 6 50.0
subroutine 4 5 80.0
pod 2 2 100.0
total 24 34 70.5


line stmt bran cond sub pod time code
1             package VS::RuleEngine::Input;
2              
3 17     17   45408 use strict;
  17         38  
  17         547  
4 17     17   88 use warnings;
  17         35  
  17         573  
5              
6 17     17   87 use Carp qw(croak);
  17         61  
  17         3029  
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 value {
16 3     3 1 1908 my $self = shift;
17 3   100     17 $self = ref $self || $self;
18 3 100       151 croak "value() should not be called as a function" if !$self;
19 2         509 croak "Class '$self' does not override value()";
20             }
21              
22             1;
23             __END__