File Coverage

lib/DataFlow/Proc/NOP.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package DataFlow::Proc::NOP;
2              
3 1     1   2150 use strict;
  1         2  
  1         37  
4 1     1   5 use warnings;
  1         2  
  1         48  
5              
6             # ABSTRACT: A No-Op processor: input data is passed unmodified to the output
7              
8             our $VERSION = '1.121830'; # VERSION
9              
10 1     1   776 use Moose;
  0            
  0            
11             extends 'DataFlow::Proc';
12              
13             use namespace::autoclean;
14              
15             sub _policy {
16             return 'NOP';
17             }
18              
19             sub _build_p {
20             return sub { }
21             }
22              
23             __PACKAGE__->meta->make_immutable;
24              
25             1;
26              
27              
28              
29             =pod
30              
31             =encoding utf-8
32              
33             =head1 NAME
34              
35             DataFlow::Proc::NOP - A No-Op processor: input data is passed unmodified to the output
36              
37             =head1 VERSION
38              
39             version 1.121830
40              
41             =head1 SYNOPSIS
42              
43             use DataFlow::Proc::NOP;
44              
45             my $nop = DataFlow::Proc::NOP->new;
46              
47             my $result = $nop->process( 'abc' );
48             # $result == 'abc'
49              
50             =head1 DESCRIPTION
51              
52             This class represents a no-op processor: the very input is passed without
53             modifications to the output.
54              
55             This class is more useful as parent class than by itself.
56              
57             =head1 METHODS
58              
59             The interface for C<DataFlow::Proc::NOP> is the same of
60             C<DataFlow::Proc>.
61              
62             =head1 SEE ALSO
63              
64             Please see those modules/websites for more information related to this module.
65              
66             =over 4
67              
68             =item *
69              
70             L<DataFlow|DataFlow>
71              
72             =back
73              
74             =head1 AUTHOR
75              
76             Alexei Znamensky <russoz@cpan.org>
77              
78             =head1 COPYRIGHT AND LICENSE
79              
80             This software is copyright (c) 2011 by Alexei Znamensky.
81              
82             This is free software; you can redistribute it and/or modify it under
83             the same terms as the Perl 5 programming language system itself.
84              
85             =head1 BUGS AND LIMITATIONS
86              
87             You can make new bug reports, and view existing ones, through the
88             web interface at L<http://rt.cpan.org>.
89              
90             =head1 DISCLAIMER OF WARRANTY
91              
92             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
93             FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
94             WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
95             PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
96             EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
97             IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
98             PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
99             SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME
100             THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
101              
102             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
103             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
104             REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
105             TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
106             CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
107             SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
108             RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
109             FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
110             SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
111             DAMAGES.
112              
113             =cut
114              
115              
116             __END__
117