Filter/Abstract.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Filter.pm ↑ Summary Filter/Plugin/AACR2.pm »
1 package MARC::Validator::Filter::Abstract;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶use Class::Utils qw(set_params);
Subroutine BEGIN: called CC=1 SCAR=2.6
7 use Error::Pure qw(err);
8  
9 our $VERSION = 0.01;
10  
11 # Constructor.
12 sub new {
13 my ($class, @params) = @_;
14  
15 # Create object.
16 my $self = bless {}, $class;
17  
18 # Process parameters.
19 set_params($self, @params);
20  
21 return $self;
22 }
23  
24 # Name of plugin.
25 sub name {
26 my $self = shift;
27  
28 err __PACKAGE__.' is abstract class,';
29 }
30  
31 # Process statistics.
32 sub process {
33 my ($self, $marc_record) = @_;
34  
35 err __PACKAGE__.' is abstract class.';
36 }
37  
38 1;
39  
40 __END__
« Filter.pm ↑ Summary Filter/Plugin/AACR2.pm »