File Coverage

blib/lib/Message/Passing/Filter/Null.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Message::Passing::Filter::Null;
2 4     4   93267 use Moo;
  4         9119  
  4         28  
3 4     4   2712 use namespace::clean -except => 'meta';
  4         8490  
  4         24  
4              
5             with 'Message::Passing::Role::Filter';
6              
7 3     3 1 8 sub filter { $_[1] }
8              
9              
10             1;
11              
12             =head1 NAME
13              
14             Message::Passing::Filter::Null - Filter no messages out.
15              
16             =head1 DESCRIPTION
17              
18             This filter does nothing, passing all incoming messages through with no changes.
19              
20             You would normally never want to use this, but it can be useful for
21             testing occasionally.
22              
23             =head1 METHODS
24              
25             =head2 filter
26              
27             Returns the message passed to it.
28              
29             =head1 SPONSORSHIP
30              
31             This module exists due to the wonderful people at Suretec Systems Ltd.
32             <http://www.suretecsystems.com/> who sponsored its development for its
33             VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
34             the SureVoIP API -
35             <http://www.surevoip.co.uk/support/wiki/api_documentation>
36              
37             =head1 AUTHOR, COPYRIGHT AND LICENSE
38              
39             See L<Message::Passing>.
40              
41             =cut