Addex/Output.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 3 / 3 totaltotal 90.9% 20 / 22 CC 1 SCAR 1.5
CC
1
Cov
92%
process_entry
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Addex/Entry.pm ↑ Summary
1 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package App::Addex::Output 0.027;
5 # ABSTRACT: base class for output plugins
6  
7 5 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #pod =head1 DESCRIPTION
10 #pod
11 #pod This is a base class for output plugins.
12 #pod
13 #pod =head1 METHODS
14 #pod
15 #pod =head2 new
16 #pod
17 #pod my $output_plugin = App::Addex::Output->new(\%arg);
18 #pod
19 #pod This method returns a new outputter.
20 #pod
21 #pod =cut
22  
23 5 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
24 5 my ($class) = @_;
25  
26 5 return bless {} => $class;
27 }
28  
29 #pod =head2 process_entry
30 #pod
31 #pod $output_plugin->process_entry($entry);
32 #pod
33 #pod This method is called once for each entry to be processed. It must be
34 #pod overridden in output plugin classes, or the base implementation will throw an
35 #pod exception when called.
36 #pod
37 #pod =cut
38  
39 0 ▶sub process_entry { Carp::confess "process_entry method not implemented" }
Subroutine process_entry: not called CC=1 SCAR=6.9
Pod documented
40  
41 #pod =head2 finalize
42 #pod
43 #pod $output_plugin->finalize;
44 #pod
45 #pod This method is called after all entries have been processed.
46 #pod
47 #pod =cut
48  
49 1 ▶sub finalize { }
Subroutine finalize: called CC=1 SCAR=0.0
Pod documented
50  
51 5 1;
52  
53 __END__
« Addex/Entry.pm ↑ Summary