HiD/Processor.pm

filter: Statementstmt 96.4% 27 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 1 / 1 totaltotal 94.7% 36 / 38 CC 1 SCAR 1.1
CC
1
Cov
96%
process
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« HiD/Plugin.pm ↑ Summary HiD/Types.pm »
1 # ABSTRACT: Base class for HiD Processor objects
2  
3  
4 package HiD::Processor;
5 6 our $AUTHORITY = 'cpan:GENEHACK';
6 6 $HiD::Processor::VERSION = '1.96';
7 6 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 6 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 ▶use 5.014; # strict, unicode_strings
Subroutine BEGIN: called CC=1 SCAR=0.0
11 6 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 6 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 ▶use warnings qw/ FATAL utf8 /;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 6 ▶use open qw/ :std :utf8 /;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 6 ▶use charnames qw/ :full /;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 ### FIXME figure out whether this makes more sense as a role that would make
18 ### it easier to see as something implementing a particular interface,
19 ### for example.
20  
21  
22 0 ▶sub process { die "override this" }
Subroutine process: not called CC=1 SCAR=6.9
Pod documented
23  
24  
25 6 __PACKAGE__->meta->make_immutable;
26 6 1;
27  
28 __END__
29  
30 =pod
31  
32 =encoding UTF-8
33  
34 =head1 NAME
35  
36 HiD::Processor - Base class for HiD Processor objects
37  
38 =head1 SYNOPSIS
39  
40 my $processor = HiD::Processor->new({ %args });
41  
42 =head1 DESCRIPTION
43  
44 Base class for HiD Processor objects.
45  
46 To create a new HiD Processor type, extend this class with something that
47 implements a 'process' method.
48  
49 =head1 METHODS
50  
51 =head2 process
52  
53 =head1 VERSION
54  
55 version 1.96
56  
57 =head1 AUTHOR
58  
59 John SJ Anderson <genehack@genehack.org>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2015 by John SJ Anderson.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« HiD/Plugin.pm ↑ Summary HiD/Types.pm »