HiD/Processor.pm

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