File Coverage

blib/lib/HiD/Processor.pm
Criterion Covered Total %
statement 23 24 95.8
branch n/a
condition n/a
subroutine 8 9 88.8
pod 1 1 100.0
total 32 34 94.1


line stmt bran cond sub pod time code
1             # ABSTRACT: Base class for HiD Processor objects
2              
3              
4             package HiD::Processor;
5             our $AUTHORITY = 'cpan:GENEHACK';
6             $HiD::Processor::VERSION = '1.99';
7 2     2   1297 use Moose;
  2         6  
  2         19  
8 2     2   10296 use namespace::autoclean;
  2         4  
  2         19  
9              
10 2     2   211 use 5.014; # strict, unicode_strings
  2         5  
11 2     2   9 use utf8;
  2         5  
  2         15  
12 2     2   47 use autodie;
  2         4  
  2         16  
13 2     2   9140 use warnings qw/ FATAL utf8 /;
  2         4  
  2         105  
14 2     2   13 use open qw/ :std :utf8 /;
  2         4  
  2         21  
15 2     2   319 use charnames qw/ :full /;
  2         2  
  2         20  
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     0 1   sub process { die "override this" }
23              
24              
25             __PACKAGE__->meta->make_immutable;
26             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.99
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