File Coverage

blib/lib/Data/Scan/Printer.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 1 1 100.0
total 27 27 100.0


line stmt bran cond sub pod time code
1 1     1   13101 use strict;
  1         1  
  1         27  
2 1     1   3 use warnings FATAL => 'all';
  1         0  
  1         60  
3              
4             package Data::Scan::Printer;
5              
6             # ABSTRACT: Example of a printer consumer for Data::Scan
7              
8             our $VERSION = '0.008'; # VERSION
9              
10             our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
11              
12 1     1   3 use Exporter qw/import/;
  1         4  
  1         25  
13 1     1   3 use vars qw/@EXPORT %Option/;
  1         1  
  1         46  
14 1     1   389 use Data::Scan::Impl::Printer;
  1         3  
  1         29  
15 1     1   5 use Moo;
  1         0  
  1         4  
16             extends 'Data::Scan';
17             #
18             # Using this module intentionaly means caller is ok to pollute its namespace
19             #
20             @EXPORT = qw/dspp/;
21             #
22             # User is advised to localized that
23             #
24             %Option = ();
25              
26              
27             sub dspp {
28 1     1 1 2725 __PACKAGE__->new(consumer => Data::Scan::Impl::Printer->new(%Option))->process(@_)
29             }
30              
31              
32             1;
33              
34             __END__